14 int EOL = (c ==
'\r' || c ==
'\n');
17 if (c !=
'\n' && c != EOF)
29 for (i = 0; (c = fgetc(InputFile)) != EOF && !
EndOfLine(InputFile, c);
40 assert(
LastLine = (
char *) malloc((i + 1) *
sizeof(
char)));
43 return c == EOF && i == 0 ? 0 :
Buffer;
static int EndOfLine(FILE *InputFile, int c)
char * ReadLine(FILE *InputFile)