libc.info: strncpy

Go forward to strpbrk
Go backward to strncmp
Go up to Strings
Go to the top op libc

`strncpy'--counted copy string

*Synopsis*
     #include <string.h>
     char *strncpy(char *DST, const char *SRC, size_t LENGTH);
   *Description*
`strncpy' copies not more than LENGTH characters from the the string
pointed to by SRC (including the terminating null character) to the
array pointed to by DST.  If the string pointed to by SRC is shorter
than LENGTH characters, null characters are appended to the destination
array until a total of LENGTH characters have been written.
*Returns*
This function returns the initial value of DST.
*Portability*
`strncpy' is ANSI C.
   `strncpy' requires no supporting OS subroutines.