SDL_wcslcpy - Copy a wide string.
Contents
Availability
This function is available since SDL 3.2.0.
Description
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.
Function Parameters
dst The destination buffer. Must not be NULL, and must not overlap with src .
src The null-terminated wide string to copy. Must not be NULL, and must not overlap with dst .
maxlen The length (in wide characters) of the destination buffer.
Header File
Defined in SDL3/SDL_stdinc.h
Name
SDL_wcslcpy - Copy a wide string.
Return Value
Returns the length (in wide characters, excluding the null terminator) of src .
See Also
•(3), SDL_wcslcat(3) Simple Directmedia Layer SDL 3.2.10 SDL_wcslcpy(3)
Synopsis
#include"SDL3/SDL.h"size_tSDL_wcslcpy(wchar_t*dst,constwchar_t*src,size_tmaxlen);
Thread Safety
It is safe to call this function from any thread.
