14 int ret, ret1, ret2, result, num;
19 if ((fptr = fopen ("./wrewind.dat", "w+")) == NULL)
21 printf ("Unable to open file.\n");
25 if ((ret = fwprintf (fptr, L"cderf")) <= 0)
27 printf ("Unable to write to file with fwprintf().\n");
33 ret1 = fwscanf (fptr, L"%c%c", &arg1, &arg2);
36 ret2 = fwscanf (fptr, L"%c%n%c", &arg1, &num, &arg2);
41 printf ("rewind after first fwscanf failed\n");