Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //removes all characters besides letters from cline to be able to compare once strings are reversed in next step
- int j;
- for(int i = 0; cline[i] != '\0'; i++){
- while (!( (cline[i] >= 'a' && cline[i] <= 'z') || cline[i] == '\0') ){ //Checks to see if the character in the array is a lower case letter or null character
- for(j = i; cline[j] != '\0'; j++){
- cline[j] = cline[j+1];
- }
- cline[j] = '\0';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement