MCPcopy Create free account
hub / github.com/Singular/Singular / omalloc0

Function omalloc0

omalloc/xalloc.h:89–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87static inline void * omAlloc0(size_t s)
88{ void *d=malloc(s);memset(d,0,s); return d; }
89static inline void * omalloc0(size_t s)
90{ if (s!=0) { void *d=malloc(s);memset(d,0,s); return d;} else return NULL; }
91
92static inline void *omRealloc0Size(void *d, __attribute__((unused)) size_t os, size_t ns)
93{ if (d==NULL)

Callers 5

getBlackboxTypesFunction · 0.85
omtTestAllocFunction · 0.85
initialize_hashFunction · 0.85
noro_stepFunction · 0.85
go_onFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by 1

omtTestAllocFunction · 0.68