strcoll - with the current regional options to compare two strings

Overview (SYNOPSIS)

#include <string.h>

int strcoll(const char *s1, const char *s2);

 

Description (DESCRIPTION)

of strcoll () function is used to compare s1 and s2 of two strings. If s1 is not empty, it will return a value less than, equal to or greater than zero are represented integer which is less than, equal to or greater than s2 . It is based on the program the current options in the area LC_COLLATE to compare. (see setlocale (3)).

 

Return value (RETURN VALUE)

If s1 is not empty, of strcoll () function returns a value less than, equal to or greater than zero are represented integer which is less than, equal to or greater than S2 . Each string interpreted according to current regional options.

 

Follow (CONFORMING TO)

SVID 3, BSD 4.3, ISO 9899

 

Note (NOTES)

If the option is the area "POSIX" or "C" , then strcoll () with strcmp () are equivalent. 

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11100902.html