Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void read_word (char** word){
- int c, j;
- j = 0;
- while (!isalpha_ru(c = getchar ()) && c != EOF);
- while(isalpha_ru(c)){
- word[j] = c;
- c = getchar ();
- j++;
- }
- word[j] = '\0';
- while (!isalpha_ru(c = getchar ()) && c != EOF);
- ungetc (c, stdin);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement