diff options
Diffstat (limited to 'test-strnlen.c')
-rw-r--r-- | test-strnlen.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test-strnlen.c b/test-strnlen.c new file mode 100644 index 00000000..0bb69791 --- /dev/null +++ b/test-strnlen.c @@ -0,0 +1,8 @@ +#include <string.h> + +int +main(void) +{ + const char s[1] = { 'a' }; + return(1 != strnlen(s, 1)); +} |