Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. int strip_q_marks(char * sentence) {
  2. char * current;
  3. int i = strlen(sentence) - 1;
  4. int count = 0;
  5. while(*(current = (sentence + i--)) == '?') {
  6. *current = '\0';
  7. count++;
  8. }
  9. return count;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement