.TH "strncpy" 9 "strncpy" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME strncpy \- Copy a length-limited, %NUL-terminated string .SH SYNOPSIS .B "char *" strncpy .BI "(char *" dest "," .BI "const char *" src "," .BI "size_t " count ");" .SH ARGUMENTS .IP "dest" 12 Where to copy the string to .IP "src" 12 Where to copy the string from .IP "count" 12 The maximum number of bytes to copy .SH "DESCRIPTION" Note that unlike userspace strncpy, this does not NUL-pad the buffer. However, the result is not NUL-terminated if the source exceeds \fIcount\fP bytes.