GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of STRCOLL

STRCOLL

Index
 

NAME

strcoll - compare two strings using the current locale  

SYNOPSIS

#include <string.h>

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

DESCRIPTION

The fBstrcoll()fP function compares the two strings fIs1fP and fIs2fP. It returns an integer less than, equal to, or greater than zero if fIs1fP is found, respectively, to be less than, to match, or be greater than fIs2fP. The comparison is based on strings interpreted as appropriate for the program's current locale for category fILC_COLLATEfP. (See fBsetlocalefP(3)).  

RETURN VALUE

The fBstrcoll()fP function returns an integer less than, equal to, or greater than zero if fIs1fP is found, respectively, to be less than, to match, or be greater than fIs2fP, when both are interpreted as appropriate for the current locale.  

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899  

NOTES

In the fI"POSIX"fP or fI"C"fP locales fBstrcoll()fP is equivalent to fBstrcmp()fP.  

SEE ALSO

bcmp(3), memcmp(3), strcasecmp(3), strcmp(3), strxfrm(3), setlocale(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
NOTES
SEE ALSO