X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fwchar%2Fwcscpy.c;h=62a52663a5f79d2e2183ab6e336ed51db54b9b9f;hp=02394ee51c9402c59fb431eee63de2092c5b8825;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=219271fd548949abce8bd75c34dd42e519418fc4 diff --git a/functions/wchar/wcscpy.c b/functions/wchar/wcscpy.c index 02394ee..62a5266 100644 --- a/functions/wchar/wcscpy.c +++ b/functions/wchar/wcscpy.c @@ -1,33 +1,33 @@ -/* wchar_t * wcscpy( wchar_t restrict *, const wchar_t restrict * ); - - 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 - -wchar_t *wcscpy( wchar_t * _PDCLIB_restrict dest, - const wchar_t * _PDCLIB_restrict src) -{ - wchar_t * rv = dest; - while(*src) { - *(dest++) = *(src++); - } - - return rv; -} - - -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -int main( void ) -{ - return TEST_RESULTS; -} - -#endif +/* wchar_t * wcscpy( wchar_t *, 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 + +wchar_t *wcscpy( wchar_t * _PDCLIB_restrict dest, + const wchar_t * _PDCLIB_restrict src) +{ + wchar_t * rv = dest; + while(*src) { + *(dest++) = *(src++); + } + + return rv; +} + + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif