Fix powerpc software sqrtf (bug 17967).
[glibc.git] / string / tst-strtok.c
blob6fbef9f33e4f5b0912f99532f255fad929a316f0
1 /* Testcase for strtok reported by Andrew Church <achurch@achurch.org>. */
2 #include <stdio.h>
3 #include <string.h>
5 static int
6 do_test (void)
8 char buf[1] = { 0 };
9 int result = 0;
11 if (strtok (buf, " ") != NULL)
13 puts ("first strtok call did not return NULL");
14 result = 1;
16 else if (strtok (NULL, " ") != NULL)
18 puts ("second strtok call did not return NULL");
19 result = 1;
22 return result;
25 #define TEST_FUNCTION do_test ()
26 #include "../test-skeleton.c"