logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                     SDL_memset4(3)

Description

       This function will set a buffer of dwordsUint32
        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.

Function Parameters

dst    the destination memory region. Must not be NULL.

       val    the Uint32
               value to set.

       dwords the number of Uint32
               values to set in dst .

Header File

       Defined in SDL3/SDL_stdinc.h

Name

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

Return Value

       Returns dst .

Synopsis

#include"SDL3/SDL.h"void*SDL_memset4(void*dst,Uint32val,size_tdwords);

Thread Safety

       It is safe to call this function from any thread.

See Also