Copies up to size-1
characters from string2
to string1
.
#include <string.h> size_t strlcpy (char *string1, const char *string2, size_t size);
string1
string2
size
Copies up to size-1
characters from string2
to string1
, null-terminating the result.
Does not zero-fill the destination string.
The behavior of strlcpy is undefined if the address ranges of the source and destination strings overlap.
The total length of the string created. For strlcat
, that is simply the length of string2
.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/string.h | string.h | clib.lib |
strlcat, strcpy, strcat, strcmp, strncat, strncmp, strnicmp, strrchr, strset, strspn