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

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