1 /* Derived from the test case in
2 http://sourceware.org/bugzilla/show_bug.cgi?id=713. */
8 FILE *fp
= fmemopen ("hello", 5, "r");
10 char *bp
= fgets (buf
, sizeof (buf
), fp
);
11 printf ("fgets: %s\n", bp
== buf
? "OK" : "ERROR");
13 bp
= fgets_unlocked (buf
, sizeof (buf
), fp
);
14 printf ("fgets_unlocked: %s\n", bp
== buf
? "OK" : "ERROR");
19 #define TEST_FUNCTION do_test ()
20 #include "../test-skeleton.c"