3 #include "locale_impl.h"
6 /* collate only by code points */
7 size_t __wcsxfrm_l(wchar_t *restrict dest
, const wchar_t *restrict src
, size_t n
, locale_t loc
)
9 size_t l
= wcslen(src
);
11 wmemcpy(dest
, src
, l
+1);
13 wmemcpy(dest
, src
, n
-1);
19 size_t wcsxfrm(wchar_t *restrict dest
, const wchar_t *restrict src
, size_t n
)
21 return __wcsxfrm_l(dest
, src
, n
, CURRENT_LOCALE
);
24 weak_alias(__wcsxfrm_l
, wcsxfrm_l
);