Go to the first, previous, next, last section, table of contents.


stpncpy

Syntax

#include <string.h>

char *stpncpy(char *_dest, const char *_src, size_t _n);

Description

Copies exactly _n characters from _src to _dest. If need be, _dest is padded with zeros to make _n characters. Like strncpy (see section strncpy), but return value different.

Return Value

Returns a pointer to the character following the last nonzero written.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.