16 FILE *fp
= tmpfile ();
19 puts ("cannot open file");
23 FPUTS (L("7-11"), fp
);
26 printf("setting errno to EINTR\n");
29 printf("checking sscanf\n");
35 if (FSCANF (fp
, L(" %i - %i %n"), &i
, &j
, &n
) < 2)
37 printf ("FSCANF couldn't read all parameters %d\n", errno
);
41 printf ("found %i-%i (length=%i)\n", i
, j
, n
);
45 printf ("i is %d, expected 7\n", i
);
50 printf ("j is %d, expected 11\n", j
);
55 printf ("n is %d, expected 4\n", j
);
62 #define TEST_FUNCTION do_test ()
63 #include "../test-skeleton.c"