Lines Matching refs:fp
17 FILE *fp = fopen(filename, "wb");
18 if (NULL == fp)
20 fputs("line 1\n", fp);
21 fputs("line 2\n", fp);
22 fclose(fp);
24 fp = fopen(filename, "rb+");
25 if (NULL == fp)
27 fgets(buffer, sizeof(buffer), fp);
28 fputs("line 3\n", fp);
29 rewind(fp);
30 fgets(buffer, sizeof(buffer), fp);
33 fgets(buffer, sizeof(buffer), fp);
36 fclose(fp);