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

Name

Description

dst

Destination buffer of siz bytes.

src

NUL‐terminated source string.

siz

Capacity of dst including space for the NUL terminator.

Created with MrDocs