3 /* strnlen( const char *, size_t len )
\r
5 This file is part of the Public Domain C Library (PDCLib).
\r
6 Permission is granted to use, modify, and / or redistribute at will.
\r
14 size_t strnlen( const char * s, size_t maxlen )
\r
16 for( size_t len = 0; len != maxlen; len++ )
\r
27 #include <_PDCLIB_test.h>
\r
32 TESTCASE( strnlen( abcde, 5 ) == 5 );
\r
33 TESTCASE( strnlen( abcde, 3 ) == 3 )
\r
34 TESTCASE( strnlen( "", SIZE_MAX ) == 0 );
\r
36 return TEST_RESULTS;
\r