Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

SDL_malloc_func - A callback used to implement SDL_malloc ().

Availability

       This datatype is available since SDL 3.2.0.

Description

       SDL will always ensure that the passed size is greater than 0.

Function Parameters

size   the size to allocate.

Header File

       Defined in SDL3/SDL_stdinc.h

Name

       SDL_malloc_func - A callback used to implement SDL_malloc ().

Return Value

       Returns a pointer to the allocated memory, or NULL if allocation failed.

See Also

•(3),  SDL_malloc(3),  •(3),  SDL_GetOriginalMemoryFunctions(3),  •(3),  SDL_GetMemoryFunctions(3), •(3),
       SDL_SetMemoryFunctions(3)

Simple Directmedia Layer                           SDL 3.2.10                             SDL_malloc_func(3type)

Synopsis

#include"SDL3/SDL.h"typedefvoid*(SDLCALL*SDL_malloc_func)(size_tsize);

Thread Safety

       It should be safe to call this callback from any thread.

See Also