]> pd.if.org Git - pdclib/blob - functions/wchar/wcsxfrm.c
Moved notime and mincoll from opt/ to functions/.
[pdclib] / functions / wchar / wcsxfrm.c
1 /* wcsxfrm( char *, const char *, size_t )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #include <wchar.h>
8
9 #ifndef REGTEST
10
11 /* See notes on wcscoll. */
12 size_t wcsxfrm( wchar_t * _PDCLIB_restrict s1, const wchar_t * _PDCLIB_restrict s2, size_t n )
13 {
14     wcsncpy(s1, s2, n);
15     return wcslen(s2);
16 }
17
18 #endif
19
20 #ifdef TEST
21 #include "_PDCLIB_test.h"
22
23 int main( void )
24 {
25     return TEST_RESULTS;
26 }
27 #endif
28