MicrOS
strcoll.c File Reference
#include "../string.h"

Functions

int strcoll (const char *str1, const char *str2)
 Compare two strings using locale. More...
 

Function Documentation

◆ strcoll()

int strcoll ( const char *  str1,
const char *  str2 
)

Compare two strings using locale.

Compares the C string str1 to the C string str2, both interpreted appropriately according to the LC_COLLATE category of the C locale currently selected.

Parameters
str1C string to be compared.
str2C string to be compared.
numMaximum number of characters to compare.
Returns
Returns an integral value indicating the relationship between the content of the memory blocks (<0: value in ptr1 was lower than in ptr2, 0: both are equals, >0: value in ptr2 was greater than in ptr2).