February 2013
Intermediate to advanced
538 pages
20h 55m
English
strncmp
int strncmp(stringone, stringtwo, intlength)
Compares two strings; returns a number less than 0 if
one is less than
two, 0 if the two strings are equal, and a
number greater than 0 if one is greater
than two. The comparison is
case-sensitive—that is, “Alphabet” and “alphabet” are not considered
equal. If specified, no more than length
characters are compared. If either string is shorter than
length characters, the length of that
string determines how many characters are compared.
Read now
Unlock full access