From: Rich Felker Date: Mon, 12 Sep 2011 02:45:56 +0000 (-0400) Subject: add dummied strverscmp (obnoxious GNU function) X-Git-Tag: v0.8.0~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a6540174be064806b6eb4dc6abff48a9b4facfdd;p=oweals%2Fmusl.git 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. --- 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); +}