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

Function reallocSize

Singular/mmstd.c:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void* reallocSize(void* old_addr, size_t old_size, size_t new_size)
42{
43 if (old_addr && new_size)
44 {
45 return realloc(old_addr, new_size);
46 }
47 else
48 {
49 freeSize(old_addr, old_size);
50 return malloc(new_size);
51 }
52}
53
54#endif
55

Callers

nothing calls this directly

Calls 3

reallocFunction · 0.85
mallocFunction · 0.85
freeSizeFunction · 0.70

Tested by

no test coverage detected