scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1.TH strncmp 3 scc\-VERSION
 2.SH NAME
 3strncmp - compare up to n characters of two strings
 4.SH SYNOPSIS
 5#include <string.h>
 6
 7int strncmp(const char *s1, const char *s2, size_t n)
 8.SH DESCRIPTION
 9The
10.BR strncmp ()
11function compares at most
12.I n
13characters of the array at
14.I s1
15with the array at
16.IR s2 .
17Characters following a null byte are not compared.
18.PP
19The result indicates the lexicographic ordering of
20.I s1
21relative to
22.IR s2 .
23.SH RETURN VALUE
24A positive integer is returned if
25.I s1
26is lexicographically greater than
27.IR s2 ,
28zero if the compared portions are equal,
29and a negative integer if
30.I s1
31is lexicographically less than
32.IR s2 .
33.PP
34When
35.I n
36is zero, zero is returned.
37.SH STANDARDS
38ISO/IEC 9899:1999 Section 7.21.4.4