| 47 | } |
| 48 | |
| 49 | void *_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 | |
| 62 | void *_calloc_r(struct _reent *ptr, size_t size, size_t len) |
| 63 | { |
nothing calls this directly
no test coverage detected