Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int strip_q_marks(char * sentence) {
- char * current;
- int i = strlen(sentence) - 1;
- int count = 0;
- while(*(current = (sentence + i--)) == '?') {
- *current = '\0';
- count++;
- }
- return count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement