Function SDL_wcslcpy
pub unsafe extern "C" fn SDL_wcslcpy(
dst: *mut u32,
src: *const u32,
maxlen: usize,
) -> usize
Available on crate feature
dep_sdl3
only.Expand description
Copy a wide string.
This function copies maxlen
- 1 wide characters from src
to dst
, then
appends a null terminator.
src
and dst
must not overlap.
If maxlen
is 0, no wide characters are copied and no null terminator is
written.
§Parameters
dst
: The destination buffer. Must not be NULL, and must not overlap withsrc
.src
: The null-terminated wide string to copy. Must not be NULL, and must not overlap withdst
.maxlen
: The length (in wide characters) of the destination buffer.
§Return value
Returns the length (in wide characters, excluding the null terminator) of
src
.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.