Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. //removes all characters besides letters from cline to be able to compare once strings are reversed in next step
  2. int j;
  3. for(int i = 0; cline[i] != '\0'; i++){
  4. 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
  5. for(j = i; cline[j] != '\0'; j++){
  6. cline[j] = cline[j+1];
  7. }
  8. cline[j] = '\0';
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement