X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstring%2Fstrlen.c;h=042582abbde91aa335e09529bbcbdd3be59da1a7;hp=02d105cf0b8e1b697dfddb97af47c5b33ade8770;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=2f57d79a5a24856fdea69b2119d67e5fb5029b3e diff --git a/functions/string/strlen.c b/functions/string/strlen.c index 02d105c..042582a 100644 --- a/functions/string/strlen.c +++ b/functions/string/strlen.c @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* strlen( const char * ) This file is part of the Public Domain C Library (PDCLib). @@ -10,6 +6,8 @@ #include +#ifndef REGTEST + size_t strlen( const char * s ) { size_t rc = 0; @@ -20,12 +18,13 @@ size_t strlen( const char * s ) return rc; } +#endif + #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" -int main() +int main( void ) { - BEGIN_TESTS; TESTCASE( strlen( abcde ) == 5 ); TESTCASE( strlen( "" ) == 0 ); return TEST_RESULTS;