X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fwchar%2Fwcslen.c;h=00e3ca55008155e869e3ca9d418f3afede1878a1;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hp=d5d878dd23fdb365098e88401b394e2cf7e008f6;hpb=219271fd548949abce8bd75c34dd42e519418fc4;p=pdclib diff --git a/functions/wchar/wcslen.c b/functions/wchar/wcslen.c index d5d878d..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