strncasecmp()

compare part of two strings, ignoring case 

Function


SYNOPSIS

#include <string.h>

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


DESCRIPTION

The function strncasecmp() performs a case-insensitive string comparison for up to the first n characters of the strings pointed to by s1 and s2.


PARAMETERS

s1 

Points to a string to compare.

s2 

Points to a string to compare.

n 

Is the maximum number of characters to compare.


RETURN VALUES

The function strncasecmp() returns a positive integer if, within the first n bytes of string s1 and string s2, disregarding case string s1 is lexically greater than string s2. It returns zero if, other than case, the first n bytes of the two strings are identical. Finally, strncasecmp() returns a negative integer if with the first n bytes, disregarding case string s1 is lexically less than string s2.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
strcasecmp(), strcmp(), strcoll(), strncmp()


PTC MKS Toolkit 10.0 Documentation Build 6.