]> andersk Git - splint.git/blame - test/fileio/filerw.c
*** empty log message ***
[splint.git] / test / fileio / filerw.c
CommitLineData
80ee600a 1int f (/*@open@*/ /*@read@*/ FILE *f1, /*@open@*/ /*@write@*/ FILE *f2)
2{
60eced23 3 int c;
80ee600a 4
60eced23 5 c = fgetc (f1);
6 c = fgetc (f2); /* error: not readable */
7
8 (void) fputc ('a', f1); /* error */
9 (void) fseek (f1, 0, SEEK_CUR);
10 (void) fputc ('a', f1); /* okay */
11
12 c = fgetc (f1); /* error */
13 return c;
80ee600a 14}
This page took 0.067987 seconds and 5 git commands to generate.