ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/tools.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/tools.c (file contents):
Revision 1.1 by pajs, Tue Mar 4 18:07:42 2003 UTC vs.
Revision 1.2 by pajs, Wed Mar 5 12:41:19 2003 UTC

# 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                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines