Function ffmpeg_sys_next::av_strlcpy
source · [−]Expand description
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
This function is the same as BSD strlcpy().
@param dst destination buffer @param src source string @param size size of destination buffer @return the length of src
@warning since the return value is the length of src, src absolutely must be a properly 0-terminated string, otherwise this will read beyond the end of the buffer and possibly crash.