.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "STRNCPY" "" "06 October 2005" "" ""
.SH NAME
strncpy \- Copy a length-limited, NUL-terminated string
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
char * strncpy (char * \fIdest\fB, const char * \fIsrc\fB, size_t \fIcount\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdest\fB\fR
Where to copy the string to
.TP
\fB\fIsrc\fB\fR
Where to copy the string from
.TP
\fB\fIcount\fB\fR
The maximum number of bytes to copy
.SH "DESCRIPTION"
.PP
Note that unlike userspace strncpy, this does not NUL-pad the buffer.
However, the result is not NUL-terminated if the source exceeds
\fIcount\fR bytes.