Lines Matching refs:fp
30 FILE *fp; in do_test() local
33 fp = fdopen (fd, "w+"); in do_test()
34 if (fp == NULL) in do_test()
41 fwprintf (fp, L"abcd"); in do_test()
42 printf ("current pos = %ld\n", ftell (fp)); in do_test()
43 if (ftell (fp) != 4) in do_test()
46 rewind (fp); in do_test()
47 ret = fwscanf (fp, L"%c", dummy); in do_test()
54 printf ("current pos = %ld\n", ftell (fp)); in do_test()
55 if (ftell (fp) != 1) in do_test()
58 rewind (fp); in do_test()
59 printf ("current pos = %ld\n", ftell (fp)); in do_test()
60 if (ftell (fp) != 0) in do_test()
63 fclose (fp); in do_test()