1.TH strncmp 3 scc\-VERSION2.SH NAME3strncmp - compare up to n characters of two strings4.SH SYNOPSIS5#include <string.h>67int strncmp(const char *s1, const char *s2, size_t n)8.SH DESCRIPTION9The10.BR strncmp ()11function compares at most12.I n13characters of the array at14.I s115with the array at16.IR s2 .17Characters following a null byte are not compared.18.PP19The result indicates the lexicographic ordering of20.I s121relative to22.IR s2 .23.SH RETURN VALUE24A positive integer is returned if25.I s126is lexicographically greater than27.IR s2 ,28zero if the compared portions are equal,29and a negative integer if30.I s131is lexicographically less than32.IR s2 .33.PP34When35.I n36is zero, zero is returned.37.SH STANDARDS38ISO/IEC 9899:1999 Section 7.21.4.4