strncasecmp3
Nonstrings case-insensitive compare
Usage
#include <strings.h> // see memory.h(3head)
int strncasecmp(const char s1[], const char s2[], size_t n);
Library
Standard C library (libc, -lc)
Overview
The strncasecmp() function is similar to strcasecmp(3), except that it compares no more than n bytes of s1 and s2.
Return value
The strncasecmp() 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 |
| strncasecmp() | Thread safety | MT-Safe locale |
Releases
19 releases since Debian 1.1 (Buzz); the text changed 13 times.