blob: c93157e671cb4dd6a55e12836e231d604783296d [file] [log] [blame]
// RUN: test.sh -p -t %t %s
#include <string.h>
#include <assert.h>
// Call memchr() on a string, and the character to find is not in the n bytes
// to look at.
int main()
{
char ch[] = "This is a string.\n";
char *pt;
pt = memchr(&ch[0], '\0', 10);
assert(pt == NULL);
return 0;
}