MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / realloc

Function realloc

components/libc/compilers/armlibc/syscall_mem.c:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39RTM_EXPORT(malloc);
40
41void *realloc(void *rmem, size_t newsize)
42{
43#ifdef RT_USING_HEAP
44 return rt_realloc(rmem, newsize);
45#else
46 _NO_HEAP_ERROR();
47 return RT_NULL;
48#endif
49}
50RTM_EXPORT(realloc);
51
52void *calloc(size_t nelem, size_t elsize)

Callers

nothing calls this directly

Calls 1

rt_reallocFunction · 0.85

Tested by

no test coverage detected