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); +}