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

Function _realloc_r

components/libc/compilers/newlib/syscalls.c:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void *_realloc_r(struct _reent *ptr, void *old, size_t newlen)
50{
51 void* result;
52
53 result = (void*)rt_realloc(old, newlen);
54 if (result == RT_NULL)
55 {
56 ptr->_errno = ENOMEM;
57 }
58
59 return result;
60}
61
62void *_calloc_r(struct _reent *ptr, size_t size, size_t len)
63{

Callers

nothing calls this directly

Calls 1

rt_reallocFunction · 0.85

Tested by

no test coverage detected