| 326 | |
| 327 | |
| 328 | void *myrealloc(void *ptr, size_t size){ |
| 329 | unsigned l; |
| 330 | void * p; |
| 331 | l = myfindsize(ptr, NULL, NULL); |
| 332 | if(size <= memsizes[l]) return ptr; |
| 333 | p = myalloc(size); |
| 334 | if(p){ |
| 335 | memmove(p,ptr,size); |
| 336 | myfree(ptr); |
| 337 | } |
| 338 | return p; |
| 339 | } |
| 340 | |
| 341 | |
| 342 | #ifdef WITH_MAIN |
no test coverage detected