strlcpy

fun strlcpy(dest: String, src: String, destSize: <Error class: unknown class>): <Error class: unknown class>

Portability wrapper that calls strlcpy() on systems which have it, and emulates strlcpy() otherwise. Copies @src to @dest; @dest is guaranteed to be nul-terminated; @src must be nul-terminated;

Return

length of @src

Parameters

dest

destination buffer

src

source buffer

destSize

length of @dest in bytes