summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-15 19:35:37 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-15 19:35:37 +0000
commit76ddb8e33af2f16bf9aeb37542834e17f253743f (patch)
treea416424da101733e1bc2578cf9163cff6406b181 /libc/string
parent348915803b139803528ec78ae80a629a83b51c34 (diff)
Add strxfrm and strcoll
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/Makefile3
-rw-r--r--libc/string/string.c14
2 files changed, 16 insertions, 1 deletions
diff --git a/libc/string/Makefile b/libc/string/Makefile
index becd201bd..e7342e804 100644
--- a/libc/string/Makefile
+++ b/libc/string/Makefile
@@ -27,7 +27,8 @@ LIBC=$(TOPDIR)libc.a
MSRC=string.c
MOBJ=strlen.o strcat.o strcpy.o strchr.o strcmp.o strncat.o strncpy.o \
strncmp.o strrchr.o strdup.o memcpy.o memccpy.o memset.o \
- memmove.o memcmp.o memchr.o ffs.o strnlen.o index.o rindex.o
+ memmove.o memcmp.o memchr.o ffs.o strnlen.o index.o rindex.o \
+ strxfrm.o strcoll.o
MSRC1=index.c
MOBJ1=index.o rindex.o
diff --git a/libc/string/string.c b/libc/string/string.c
index 2a689ccef..d5f3a3e59 100644
--- a/libc/string/string.c
+++ b/libc/string/string.c
@@ -77,6 +77,13 @@ int strcmp(const char *s1, const char *s2)
}
#endif
+#ifdef L_strcoll
+int strcoll(const char *s1, const char *s2)
+{
+ return( strcmp(s1, s2));
+}
+#endif
+
/********************** Function strncat ************************************/
#ifdef L_strncat
@@ -113,6 +120,13 @@ char *strncpy(char *dst, const char *src, size_t len)
}
#endif
+#ifdef L_strxfrm
+char *strncpy(char *dst, const char *src, size_t len)
+{
+ return( strncpy( dst, src, len));
+}
+#endif
+
/********************** Function strncmp ************************************/
#ifdef L_strncmp