projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix x32 unistd macros to report as ILP32 not LP64
[musl]
/
src
/
locale
/
strxfrm.c
diff --git
a/src/locale/strxfrm.c
b/src/locale/strxfrm.c
index
8f12339
..
14b76a6
100644
(file)
--- a/
src/locale/strxfrm.c
+++ b/
src/locale/strxfrm.c
@@
-1,9
+1,19
@@
#include <string.h>
#include <string.h>
+#include <locale.h>
+#include "locale_impl.h"
+#include "libc.h"
/* collate only by code points */
/* collate only by code points */
-size_t
strxfrm(char *dest, const char *src, size_t n
)
+size_t
__strxfrm_l(char *restrict dest, const char *restrict src, size_t n, locale_t loc
)
{
size_t l = strlen(src);
if (n > l) strcpy(dest, src);
return l;
}
{
size_t l = strlen(src);
if (n > l) strcpy(dest, src);
return l;
}
+
+size_t strxfrm(char *restrict dest, const char *restrict src, size_t n)
+{
+ return __strxfrm_l(dest, src, n, CURRENT_LOCALE);
+}
+
+weak_alias(__strxfrm_l, strxfrm_l);