strcasecmp3
Strings case-insensitive compare
Usage
#include <strings.h>
int strcasecmp(const char *s1, const char *s2);
Library
Standard C library (libc, -lc)
Overview
The strcasecmp() function performs a byte-by-byte comparison of the strings s1 and s2, ignoring the case of the characters. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
Return value
The strcasecmp() function returns an integer less than, equal to, or greater than zero if s1 is, after ignoring case, found to be less than, to match, or be greater than s2, respectively.
Attributes
For an explanation of the terms used in this section, see attributes(7).
| Interface | Attribute | Value |
| strcasecmp() | Thread safety | MT-Safe locale |
Releases
19 releases since Debian 1.1 (Buzz); the text changed 13 times.