From c2df3e519a8701a868dc4910744c40b42e3f73e4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 4 Jan 2014 13:40:01 +0000 Subject: Even though strnlen(3) is required by POSIX 2008, Matthias Scheler reports than Solaris 10 lacks it. While here, sort the declarations in config.h and move the headers to the top. --- test-strnlen.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test-strnlen.c (limited to 'test-strnlen.c') 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 + +int +main(void) +{ + const char s[1] = { 'a' }; + return(1 != strnlen(s, 1)); +} -- cgit v1.2.3