May 2003
Intermediate to advanced
808 pages
32h 24m
English
strncmp function — Compares strings
int strncmp(const char* s1, const char* s2, size_t n)The strncmp function
compares at most n characters of
two null-terminated strings as arrays of unsigned char. If the strings are equal, the return
value is 0. Otherwise, the return
value is positive if s1 is
greater than s2 or negative if
s1 is less than s2. If one string is a prefix of the
other, the longer string is greater than the shorter string.
memcmp function, strcmp function, wcsncmp in <cwchar>
Read now
Unlock full access