X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fmincoll%2Fwcsxfrm.c;fp=opt%2Fmincoll%2Fwcsxfrm.c;h=7430567888719c80bf81e97d1bef0ca66470e0cb;hb=14b5b78e19a79f590233caee7848e7cb19084088;hp=0000000000000000000000000000000000000000;hpb=41777e3d5dc655f59a8c3bcd071639e6878e853a;p=pdclib diff --git a/opt/mincoll/wcsxfrm.c b/opt/mincoll/wcsxfrm.c new file mode 100644 index 0000000..7430567 --- /dev/null +++ b/opt/mincoll/wcsxfrm.c @@ -0,0 +1,28 @@ +/* wcsxfrm( char *, const char *, size_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 + +/* See notes on wcscoll. */ +size_t wcsxfrm( wchar_t * _PDCLIB_restrict s1, const wchar_t * _PDCLIB_restrict s2, size_t n ) +{ + wcsncpy(s1, s2, n); + return wcslen(s2); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} +#endif +