Changeset 4098 for trunk/lib-src/ebrowse.c
- Timestamp:
- 07/01/06 08:27:06 (2 years ago)
- Files:
-
- trunk/lib-src/ebrowse.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib-src/ebrowse.c
r4037 r4098 3910 3910 fp = fopen (out_filename, "r"); 3911 3911 if (fp == NULL) 3912 yyerror ("file `%s' must exist for --append", out_filename); 3912 { 3913 yyerror ("file `%s' must exist for --append", out_filename); 3914 exit (EXIT_FAILURE); 3915 } 3913 3916 3914 3917 rc = fseek (fp, 0, SEEK_END); 3915 3918 if (rc == -1) 3916 yyerror ("error seeking in file `%s'", out_filename); 3919 { 3920 yyerror ("error seeking in file `%s'", out_filename); 3921 exit (EXIT_FAILURE); 3922 } 3917 3923 3918 3924 rc = ftell (fp); 3919 3925 if (rc == -1) 3920 yyerror ("error getting size of file `%s'", out_filename); 3926 { 3927 yyerror ("error getting size of file `%s'", out_filename); 3928 exit (EXIT_FAILURE); 3929 } 3930 3921 3931 else if (rc == 0) 3922 yyerror ("file `%s' is empty", out_filename); 3932 { 3933 yyerror ("file `%s' is empty", out_filename); 3934 /* It may be ok to use an empty file for appending. 3935 exit (EXIT_FAILURE); */ 3936 } 3923 3937 3924 3938 fclose (fp);
