Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. void read_word (char** word){
  2. int c, j;
  3. j = 0;
  4. while (!isalpha_ru(c = getchar ()) && c != EOF);
  5. while(isalpha_ru(c)){
  6. word[j] = c;
  7. c = getchar ();
  8. j++;
  9. }
  10. word[j] = '\0';
  11. while (!isalpha_ru(c = getchar ()) && c != EOF);
  12. ungetc (c, stdin);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement