home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / d / desklib / !DeskSrc / FN / Libraries / DeskMem / c0 / Realloc < prev    next >
Encoding:
Text File  |  1996-05-13  |  421 b   |  21 lines

  1. #include "DeskLib:Error2.h"
  2. #include "Desk.Debug.h"
  3.  
  4. #include "Defs.h"
  5.  
  6.  
  7.  
  8. void    *Desk_DeskMem_Realloc( void *oldptr, size_t size)
  9. {
  10. void    *ptr;
  11.  
  12. Desk_Debug2_Printf( "Desk_DeskMem_Realloc called. oldptr=%p, size=%i\n", oldptr, size);
  13.  
  14. ptr = Desk_DeskMem_XRealloc( oldptr, size);
  15.  
  16. if (ptr || size==0)    return ptr;
  17.  
  18. Desk_Error2_Exit( &Desk_error2_globalblock);
  19. return NULL;    /* Never reaches here - keep the compiler happy    */
  20. }
  21.