Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #ifdef MALLOC_PROVIDED
  2. int _dummy_calloc = 1;
  3. #else
  4. /* realloc.c -- a wrapper for realloc_r.  */
  5.  
  6. #include <_ansi.h>
  7. #include <reent.h>
  8. #include <stdlib.h>
  9. #include <malloc.h>
  10.  
  11. #ifndef _REENT_ONLY
  12.  
  13. _PTR
  14. _DEFUN (realloc, (ap, nbytes),
  15.         _PTR ap _AND
  16.         size_t nbytes)
  17. {
  18.   return _realloc_r (_REENT, ap, nbytes);
  19. }
  20.  
  21. #endif
  22. #endif /* MALLOC_PROVIDED */
  23.