Created
June 6, 2016 21:49
-
-
Save aaronryank/8d68bc35065a5c37b787b8324ef689c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int getword(char *fmt, int delim, FILE *buf) | |
{ | |
int c, x; | |
while (((c = getchar()) != EOF) && (c != delim)) | |
fmt[x++] = c; | |
return x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment