libc.info: strncmp

Go forward to strncpy
Go backward to strncat
Go up to Strings
Go to the top op libc

`strncmp'--character string compare

*Synopsis*
     #include <string.h>
     int strncmp(const char *A, const char * B, size_t LENGTH);
   *Description*
`strncmp' compares up to LENGTH characters from the string at A to the
string at B.
*Returns*
If `*A' sorts lexicographically after `*B', `strncmp' returns a number
greater than zero.  If the two strings are equivalent, `strncmp'
returns zero.  If `*A' sorts lexicographically before `*B', `strncmp'
returns a number less than zero.
*Portability*
`strncmp' is ANSI C.
   `strncmp' requires no supporting OS subroutines.