strncoll, strnicoll, _mbsncoll, _mbsnicoll, _wcsncoll, _wcsnicoll

From RAD Studio
Jump to: navigation, search

Go Up to string.h Index


Header File

string.h, mbstring.h

Category

Memory and String Manipulation Routines

Prototype

int _strncoll(const char *s1, const char *s2, size_t n);

int _wcsncoll(const wchar_t *s1, const wchar_t *s2, size_t n);

int _strnicoll(const char *s1, const char *s2, size_t n);

int _wcsnicoll(const wchar_t *s1, const wchar_t *s2, size_t n);

int _mbsncoll(const unsigned char *s1, const unsigned char *s2, size_t n);

int _mbsnicoll(const unsigned char *s1, const unsigned char *s2, size_t n);

Description

_strncoll compares n number of elements from the string pointed to by s1 to the string pointed to by s2, according to the current locale's LC_COLLATE category.

_strnicoll performs like _strncoll but is not case sensitive.

Return Value

less than s2

< 0

the same as s2

== 0

greater than s2

> 0