add dummied strverscmp (obnoxious GNU function)
authorRich Felker <dalias@aerifal.cx>
Mon, 12 Sep 2011 02:45:56 +0000 (22:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 12 Sep 2011 02:45:56 +0000 (22:45 -0400)
programs that use this tend to horribly botch international text
support, so it's questionable whether we want to support it even in
the long term... for now, it's just a dummy that calls strcmp.

include/string.h
src/string/strverscmp.c [new file with mode: 0644]

index f95a15c..a5b5a51 100644 (file)
@@ -69,6 +69,7 @@ size_t strlcpy (char *, const char *, size_t);
 #endif
 
 #ifdef _GNU_SOURCE
 #endif
 
 #ifdef _GNU_SOURCE
+int strverscmp (const char *, const char *);
 int strcasecmp (const char *, const char *);
 int strncasecmp (const char *, const char *, size_t);
 char *strchrnul(const char *, int);
 int strcasecmp (const char *, const char *);
 int strncasecmp (const char *, const char *, size_t);
 char *strchrnul(const char *, int);
diff --git a/src/string/strverscmp.c b/src/string/strverscmp.c
new file mode 100644 (file)
index 0000000..7054967
--- /dev/null
@@ -0,0 +1,7 @@
+#include <string.h>
+
+int strverscmp(const char *l, const char *r)
+{
+       /* FIXME */
+       return strcmp(l, r);
+}