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");
34 FSCANF (fp, L(" %i - %i %n"), &i, &j, &n);
35 printf ("found %i-%i (length=%i)\n", i, j, n);
40 printf ("i is %d, expected 7\n", i);
45 printf ("j is %d, expected 11\n", j);
50 printf ("n is %d, expected 4\n", j);
57 #define TEST_FUNCTION do_test ()
58 #include "../test-skeleton.c"