diff --git a/include/string.h b/include/string.h index f95a15c9b72340d0269374227b5ee65b6a93b413..a5b5a510a41d5de5937b559556dd598f8a3c2d3d 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 0000000000000000000000000000000000000000..7054967837f895301d5472ec9303ff63905db6ed --- /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); +}