blob: 66d8a8a4a6431d0196d9c30830495a1ccfc35e01 [file] [log] [blame]
// RUN: test.sh -p -t %t %s
// XFAIL: darwin
#include <string.h>
#include <assert.h>
// Example of the correct usage of strnlen().
int main()
{
char string[10] = "A string";
size_t result;
result = strnlen(string, 100);
assert(result == 8);
return 0;
}