diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-11 22:45:56 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-11 22:45:56 -0400 |
commit | a6540174be064806b6eb4dc6abff48a9b4facfdd (patch) | |
tree | a4f1973d1daf9f8c575507ca405de87c19085fc6 | |
parent | d4045a1683d402dd4e53b3ae388d8794d7238c7e (diff) | |
download | musl-a6540174be064806b6eb4dc6abff48a9b4facfdd.tar.gz musl-a6540174be064806b6eb4dc6abff48a9b4facfdd.tar.xz musl-a6540174be064806b6eb4dc6abff48a9b4facfdd.zip |
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.
-rw-r--r-- | include/string.h | 1 | ||||
-rw-r--r-- | src/string/strverscmp.c | 7 |
2 files changed, 8 insertions, 0 deletions
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 <string.h> + +int strverscmp(const char *l, const char *r) +{ + /* FIXME */ + return strcmp(l, r); +} |