This commit is contained in:
parent
37e9b25b62
commit
8c13513bf4
@ -95,6 +95,9 @@ extern "C"
|
|||||||
/* Compare two fixed-size null-terminated strings, ignoring case. */
|
/* Compare two fixed-size null-terminated strings, ignoring case. */
|
||||||
int strncasecmp(const char* a, const char* b, size_t max);
|
int strncasecmp(const char* a, const char* b, size_t max);
|
||||||
|
|
||||||
|
/* Compare two null-terminated strings according to the current locale. */
|
||||||
|
int strcoll(const char* a, const char* b);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -9,6 +9,12 @@ extern "C"
|
|||||||
|
|
||||||
extern "C++" const char* error_string(int);
|
extern "C++" const char* error_string(int);
|
||||||
|
|
||||||
|
int strcoll(const char* a, const char* b)
|
||||||
|
{
|
||||||
|
// In the POSIX or C locales strcoll() is equivalent to strcmp().
|
||||||
|
return strcmp(a, b);
|
||||||
|
}
|
||||||
|
|
||||||
char* strerror(int errnum)
|
char* strerror(int errnum)
|
||||||
{
|
{
|
||||||
return const_cast<char*>(error_string(errnum));
|
return const_cast<char*>(error_string(errnum));
|
||||||
|
Loading…
Reference in New Issue
Block a user