STRNCMP(3)

NAME
6.30 `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.

SEE ALSO
strncmp is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.