# | Line 5 | Line 5 | char *f_read_line(FILE *f, const char *string){ | |
---|---|---|
5 | /* Max line length. 8k should be more than enough */ | |
6 | static char line[8192]; | |
7 | ||
8 | < | while((fgets(line, sizeof(line), f))==NULL){ |
9 | < | |
8 | > | while((fgets(line, sizeof(line), f))!=NULL){ |
9 | if(strncmp(string, line, strlen(string))==0){ | |
10 | return line; | |
11 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |