OPENSSL_strlcpy

Copy src into dst with BSD strlcpy semantics.

Synopsis

Declared in <openssl/crypto.h>

size_t
OPENSSL_strlcpy(
    char* dst,
    char const* src,
    size_t siz);

Return Value

Length of src (as if there were no truncation).

Parameters

NameDescription
dstDestination buffer of siz bytes.
srcNUL-terminated source string.
sizCapacity of dst including space for the NUL terminator.