1
0
Fork 0

More docs: string copying.

This commit is contained in:
wael 2021-09-06 19:14:01 +03:00
parent cc0b74cd04
commit 764595daa2
1 changed files with 25 additions and 0 deletions

25
docs/strings/strzcpy.ms Normal file
View File

@ -0,0 +1,25 @@
.DA
.TL
strzcpy
.AU
Wael Karram
.AB no
Documentation for strzcpy
.AE
.ND
.PP
The header and implementation file both define a safe string copying function.
.br
This function takes three arguments:
.I "char *restrict dst" ,
.I "const char *restrict src" \0and
.I "size_t len" ,
the first of which is the destination buffer (should have enough space), the second a source buffer,
and the third a maximal length to copy.
.br
Will always produce a null-terminated string copy.