X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fwchar%2Fwcschr.c;h=5629aa6fdc1e70fd0df0a4d64ad775f26851ca2d;hp=0dffcaab138f3dfc6616ea69cc8ec8f1e3d6063c;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/functions/wchar/wcschr.c b/functions/wchar/wcschr.c index 0dffcaa..5629aa6 100644 --- a/functions/wchar/wcschr.c +++ b/functions/wchar/wcschr.c @@ -1,32 +1,32 @@ -/* wcschr( const wchar_t *, 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 -#include - -#ifndef REGTEST - -wchar_t *wcschr(const wchar_t * haystack, wchar_t needle) -{ - while(*haystack) { - if(*haystack == needle) return (wchar_t*) haystack; - haystack++; - } - return NULL; -} - - -#endif - -#ifdef TEST -#include "_PDCLIB_test.h" - -int main( void ) -{ - return TEST_RESULTS; -} - -#endif +/* wcschr( const wchar_t *, 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 +#include + +#ifndef REGTEST + +wchar_t *wcschr(const wchar_t * haystack, wchar_t needle) +{ + while(*haystack) { + if(*haystack == needle) return (wchar_t*) haystack; + haystack++; + } + return NULL; +} + + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif