libite 2.6.1
|
#include <sys/types.h>
#include <string.h>
Go to the source code of this file.
Functions | |
size_t | strlcpy (char *dst, const char *src, size_t dsize) |
size_t strlcpy | ( | char * | dst, |
const char * | src, | ||
size_t | dsize ) |
Safe version of strncpy() from OpenBSD
dst | Destination string |
src | Source string |
dsize | Total maximum size of dst |
This function copies string src
to buffer dst
of size dsize
bytes. At most dsize-1 chars will be copied. Always NUL terminates (unless dsize==0).