[BACK]Return to test-strnlen.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / Attic / test-strnlen.c (download)

Revision 1.1, Sat Jan 4 13:40:01 2014 UTC (10 years, 4 months ago) by schwarze
Branch: MAIN
Branch point for: VERSION_1_12

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.

#include <string.h>

int
main(void)
{
	const char s[1] = { 'a' };
	return(1 != strnlen(s, 1));
}