OSDN Git Service

Add strxfrm and strcoll
authorEric Andersen <andersen@codepoet.org>
Thu, 15 Mar 2001 19:35:37 +0000 (19:35 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 15 Mar 2001 19:35:37 +0000 (19:35 -0000)
libc/string/Makefile
libc/string/string.c

index becd201..e7342e8 100644 (file)
@@ -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
index 2a689cc..d5f3a3e 100644 (file)
@@ -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