MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY icalloc

Function ILAPIENTRY icalloc

DevIL/src-IL/src/il_alloc.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void* ILAPIENTRY icalloc(const ILsizei Size, const ILsizei Num)
105{
106 void *Ptr = ialloc(Size * Num);
107 if (Ptr == NULL)
108 return Ptr;
109 imemclear(Ptr, Size * Num);
110 return Ptr;
111}
112
113/*** Default Allocation/Deallocation Function ***/
114static void* ILAPIENTRY DefaultAllocFunc(const ILsizei Size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected