1STRCASECMP(3P)             POSIX Programmer's Manual            STRCASECMP(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       strcasecmp, strncasecmp - case-insensitive string comparisons
13

SYNOPSIS

15       #include <strings.h>
16
17       int strcasecmp(const char *s1, const char *s2);
18       int strncasecmp(const char *s1, const char *s2, size_t n);
19
20

DESCRIPTION

22       The strcasecmp() function shall compare, while ignoring differences  in
23       case,  the  string pointed to by s1 to the string pointed to by s2. The
24       strncasecmp() function shall compare,  while  ignoring  differences  in
25       case,  not  more  than  n bytes from the string pointed to by s1 to the
26       string pointed to by s2.
27
28       In the POSIX locale, strcasecmp() and strncasecmp() shall behave as  if
29       the  strings had been converted to lowercase and then a byte comparison
30       performed. The results are unspecified in other locales.
31

RETURN VALUE

33       Upon completion, strcasecmp() shall return  an  integer  greater  than,
34       equal  to,  or less than 0, if the string pointed to by s1 is, ignoring
35       case, greater than, equal to, or less than the string pointed to by s2,
36       respectively.
37
38       Upon  successful  completion,  strncasecmp()  shall  return  an integer
39       greater than, equal to, or less than 0, if the possibly null-terminated
40       array  pointed  to  by s1 is, ignoring case, greater than, equal to, or
41       less than the possibly null-terminated array pointed to by s2,  respecā€
42       tively.
43

ERRORS

45       No errors are defined.
46
47       The following sections are informative.
48

EXAMPLES

50       None.
51

APPLICATION USAGE

53       None.
54

RATIONALE

56       None.
57

FUTURE DIRECTIONS

59       None.
60

SEE ALSO

62       The Base Definitions volume of IEEE Std 1003.1-2001, <strings.h>
63
65       Portions  of  this text are reprinted and reproduced in electronic form
66       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
67       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
68       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
69       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
70       event of any discrepancy between this version and the original IEEE and
71       The  Open Group Standard, the original IEEE and The Open Group Standard
72       is the referee document. The original Standard can be  obtained  online
73       at http://www.opengroup.org/unix/online.html .
74
75
76
77IEEE/The Open Group                  2003                       STRCASECMP(3P)
Impressum