function

strncasecmp . string . sncode

VERSIONlatest Case-insensitive string comparison of the first n characters.

STRNCASECMP(1e)

NAME

strncasecmp - Case-insensitive string comparison of the first n characters.

SYNOPSIS

strncasecmp(str1,str2,len)

PARAMETERS

str1
The first string
str2
The second string
len
The length

RETURN

Returns < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.

EXAMPLES

in:  res=<{strncasecmp("one ","ONE SAMPLE",4)}>.
out: res=0.

in:  res=<{strncasecmp("ONE ","ONE SAMPLE",5)}>.
out: res=-115.

in:  res=<{strncasecmp("ONE SAMPLE","ONE ",4)}>.
out: res=0.

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>