*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> strcasecmp (3)              
Title
Content
Arch
Section
 

strcasecmp(3)

Contents


NAME    [Toc]    [Back]

       strcasecmp,  strncasecmp - Perform case-insensitive string
       comparisons

SYNOPSIS    [Toc]    [Back]

       #include <strings.h>

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

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       strcasecmp(), strncasecmp():  XPG4-UNIX

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Points to a location containing first string.  Points to a
       location  containing the second of two strings referenced.
       Specifies the maximum number of bytes to compare.

DESCRIPTION    [Toc]    [Back]

       The strcasecmp() function compares the string  pointed  to
       by  the  s1  parameter  to the string pointed to by the s2
       parameter, while ignoring differences in case.  The  strncasecmp()
  function is similar to the strcasecmp function,
       but also compares size. If the  size  specified  by  n  is
       reached  before  a  null,  the comparison stops. Note that
       these functions work for 7-bit  ASCII  compares  only  and
       should not be used in internationalized applications.

RETURN VALUES    [Toc]    [Back]

       Upon  completion,  the  strcasecmp()  function  returns an
       integer whose value is greater than,  equal  to,  or  less
       than  0 (zero), according to whether the s1 string, ignoring
 case, is greater than, equal to, or less than  the  s2
       string.

       Upon  successful  completion,  the  strncasecmp() function
       returns an integer whose value is greater than, equal  to,
       or  less  than 0 (zero), according to whether the s1 array
       (possibly  null-terminated),  ignoring  case,  is  greater
       than, equal to, or less than the s2 string (possibly nullterminated).









SEE ALSO    [Toc]    [Back]

      
      
       Functions: string(3), strcat(3), strcmp(3), strcpy(3)

       Standards: standards(5)



                                                    strcasecmp(3)
[ Back ]
 Similar pages
Name OS Title
towlower FreeBSD upper case to lower case letter conversion (wide character version)
towupper FreeBSD lower case to upper case letter conversion (wide character version)
toupper NetBSD lower case to upper case letter conversion
_toupper OpenBSD lower case to upper case letter conversion
tolower FreeBSD upper case to lower case letter conversion
toupper FreeBSD lower case to upper case letter conversion
_tolower OpenBSD upper case to lower case letter conversion
toupper OpenBSD lower case to upper case letter conversion
tolower NetBSD upper case to lower case letter conversion
tolower OpenBSD upper case to lower case letter conversion
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service