STPNCPY(3)

NAME
6.15 `stpncpy'--counted copy string returning a pointer to its end

SYNOPSIS
     #include <string.h>
     char *stpncpy(char *DST, const char *SRC, size_t LENGTH);

DESCRIPTION
`stpncpy' 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 a pointer to the end of the destination string, thus pointing to the trailing ' ', or, if the destination string is not null-terminated, pointing to dst + n.

PORTABILITY
`stpncpy' is a GNU extension, candidate for inclusion into POSIX/SUSv4.
   `stpncpy' requires no supporting OS subroutines.

SEE ALSO
stpncpy is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.