From a6540174be064806b6eb4dc6abff48a9b4facfdd Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 11 Sep 2011 22:45:56 -0400 Subject: [PATCH] add dummied strverscmp (obnoxious GNU function) 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 | 1 + src/string/strverscmp.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src/string/strverscmp.c diff --git a/include/string.h b/include/string.h index f95a15c9..a5b5a510 100644 --- a/include/string.h +++ b/include/string.h @@ -69,6 +69,7 @@ size_t strlcpy (char *, const char *, size_t); #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); diff --git a/src/string/strverscmp.c b/src/string/strverscmp.c new file mode 100644 index 00000000..70549678 --- /dev/null +++ b/src/string/strverscmp.c @@ -0,0 +1,7 @@ +#include + +int strverscmp(const char *l, const char *r) +{ + /* FIXME */ + return strcmp(l, r); +}