提交 a6540174 编写于 作者: R Rich Felker

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.
上级 d4045a16
...@@ -69,6 +69,7 @@ size_t strlcpy (char *, const char *, size_t); ...@@ -69,6 +69,7 @@ size_t strlcpy (char *, const char *, size_t);
#endif #endif
#ifdef _GNU_SOURCE #ifdef _GNU_SOURCE
int strverscmp (const char *, const char *);
int strcasecmp (const char *, const char *); int strcasecmp (const char *, const char *);
int strncasecmp (const char *, const char *, size_t); int strncasecmp (const char *, const char *, size_t);
char *strchrnul(const char *, int); char *strchrnul(const char *, int);
......
#include <string.h>
int strverscmp(const char *l, const char *r)
{
/* FIXME */
return strcmp(l, r);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册