7 static void prepare (void);
8 #define PREPARE(argc, argv) prepare ()
11 #define TEST_FUNCTION do_test ()
12 static int do_test (void);
13 #include "../test-skeleton.c"
19 fd
= create_temp_file ("wrewind2.", NULL
);
33 fp
= fdopen (fd
, "w+");
36 puts ("fopen(""testfile"", ""w+"") returned NULL.");
41 fwprintf (fp
, L
"abcd");
42 printf ("current pos = %ld\n", ftell (fp
));
47 ret
= fwscanf (fp
, L
"%c", dummy
);
49 printf ("current pos = %ld\n", ftell (fp
));
54 printf ("current pos = %ld\n", ftell (fp
));