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 STRCASECMP

STRCASECMP

Index
 

NAME

strcasecmp, strncasecmp - compare two strings ignoring case  

SYNOPSIS

#include <strings.h>

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

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

DESCRIPTION

The fBstrcasecmp()fP function compares the two strings fIs1fP and fIs2fP, ignoring the case of the characters. 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 fBstrncasecmp()fP function is similar, except it only compares the first fInfP characters of fIs1fP.  

RETURN VALUE

The fBstrcasecmp()fP and fBstrncasecmp()fP functions return an integer less than, equal to, or greater than zero if fIs1fP (or the first fInfP bytes thereof) is found, respectively, to be less than, to match, or be greater than fIs2fP.  

CONFORMING TO

BSD 4.4  

SEE ALSO

bcmp(3), memcmp(3), strcmp(3), strcoll(3), strncmp(3), wcscasecmp(3), wcsncasecmp(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO