fgets1 fgets char * fgets(char *buf, int n, FILE *fp) #include #include #include "local.h" /* * Read at most n-1 characters from the given file. * Stop when a newline has been read, or the count runs out. * Return first argument, or NULL if no characters were read. * Do not return NULL if n == 1. */ char * fgets(char *buf, int n, FILE *fp) { size_t len; char *s; unsigned char *p, *t; if (n _r _r; p = fp->_p;.. 2016. 7. 9. 이전 1 다음