scc

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

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

 1.TH strncpy 3 scc\-VERSION
 2.SH NAME
 3strncpy - copy a string with a length limit
 4.SH SYNOPSIS
 5#include <string.h>
 6
 7char *strncpy(char *restrict s1, const char *restrict s2, size_t n)
 8.SH DESCRIPTION
 9The
10.BR strncpy ()
11function copies at most
12.I n
13characters from the array at
14.I s2
15into the array at
16.IR s1 .
17Characters that follow a null byte in
18.I s2
19are not copied.
20.PP
21Overlapping source and destination regions produce undefined behavior.
22.PP
23When the string at
24.I s2
25is shorter than
26.I n
27characters, the remaining positions in
28.I s1
29are filled with null bytes until exactly
30.I n
31bytes have been written.
32.PP
33When
34.I n
35is zero, nothing is copied.
36.SH RETURN VALUE
37The
38.BR strncpy ()
39function returns its first argument,
40.IR s1 .
41.SH STANDARDS
42ISO/IEC 9899:1999 Section 7.21.2.4