X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fwchar%2Fwcslen.c;h=00e3ca55008155e869e3ca9d418f3afede1878a1;hp=1ae9fe4f9f1adbcedd470a7676be4478d1120a9c;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/functions/wchar/wcslen.c b/functions/wchar/wcslen.c index 1ae9fe4..00e3ca5 100644 --- a/functions/wchar/wcslen.c +++ b/functions/wchar/wcslen.c @@ -1,29 +1,29 @@ -/* wcslen( const wchar_t * ); - - This file is part of the Public Domain C Library (PDCLib). - Permission is granted to use, modify, and / or redistribute at will. -*/ - -#include - -#ifndef REGTEST - -size_t wcslen( const wchar_t * str ) -{ - size_t n = 0; - while(*(str++)) n++; - return n; -} - - -#endif - -#ifdef TEST -#include "_PDCLIB_test.h" - -int main( void ) -{ - return TEST_RESULTS; -} - -#endif +/* wcslen( const wchar_t * ); + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST + +size_t wcslen( const wchar_t * str ) +{ + size_t n = 0; + while(*(str++)) n++; + return n; +} + + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif