DOKK / manpages / debian 13 / libsdl3-doc / SDL_memset4.3.en
SDL_memset4(3) SDL3 FUNCTIONS SDL_memset4(3)

SDL_memset4 - Initialize all 32-bit words of buffer of memory to a specific value.

Defined in SDL3/SDL_stdinc.h

#include "SDL3/SDL.h"
void * SDL_memset4(void *dst, Uint32 val, size_t dwords);

This function will set a buffer of dwords Uint32
values, pointed to by dst , to the value specified in val .

Unlike SDL_memset , this sets 32-bit values, not bytes, so it's not limited to a range of 0-255.

the destination memory region. Must not be NULL.
the Uint32
value to set.
the number of Uint32
values to set in dst .

Returns dst .

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer