.\" 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 "STRLCPY" "" "06 October 2005" "" "" .SH NAME strlcpy \- Copy a NUL terminated string into a sized buffer .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp size_t strlcpy (char * \fIdest\fB, const char * \fIsrc\fB, size_t \fIsize\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\fIsize\fB\fR size of destination buffer .SH "BSD" .PP the result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like \fBstrncpy\fR does.