Function ndpi_strlcpy¶
- Defined in File ndpi_api.h
Function Documentation¶
-
size_t
ndpi_strlcpy
(char *dst, const char *src, size_t dst_len, size_t src_len)¶ Copies src string to dst buffer with length limit.
Copies the string src into dst buffer, limiting the copy length by dst_len. Handles both null-terminated and non null-terminated strings based on src_len. Ensures null-termination in dst if dst_len > 0.
- Return
- Length of src string
- Parameters
dst
: Destination buffersrc
: Source stringdst_len
: Size of dst buffersrc_len
: Length of src string