10 static void prepare (void);
11 #define PREPARE(argc, argv) prepare ()
14 #define TEST_FUNCTION do_test ()
15 static int do_test (void);
16 #include "../test-skeleton.c"
22 fd = create_temp_file ("wrewind.", NULL);
34 int ret1, ret2, result, num;
39 fptr = fdopen (fd, "w+");
42 printf ("Unable to open file.\n");
46 if (fwprintf (fptr, L"cderf") <= 0)
48 printf ("Unable to write to file with fwprintf().\n");
54 ret1 = fwscanf (fptr, L"%c%c", &arg1, &arg2);
57 ret2 = fwscanf (fptr, L"%c%n%c", &arg1, &num, &arg2);
62 printf ("rewind after first fwscanf failed\n");