projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix namespace violation in sys/shm.h
[musl]
/
src
/
locale
/
strxfrm.c
diff --git
a/src/locale/strxfrm.c
b/src/locale/strxfrm.c
index
8f12339
..
32c4619
100644
(file)
--- a/
src/locale/strxfrm.c
+++ b/
src/locale/strxfrm.c
@@
-1,9
+1,18
@@
#include <string.h>
#include <string.h>
+#include <locale.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, 0);
+}
+
+weak_alias(__strxfrm_l, strxfrm_l);