Fix ChangeLog typo
[glibc.git] / string / tst-strtok.c
blob628e106a4646c378e9bdbf943c0e74f4e7726cfb
1 /* Testcase for strtok reported by Andrew Church <achurch@achurch.org>. */
2 #include <stdio.h>
3 #include <string.h>
5 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 #include <support/test-driver.c>