home *** CD-ROM | disk | FTP | other *** search
/ The Education Master 1994 (4th Edition) / EDUCATIONS_MASTER_4TH_EDITION.bin / files / progng_c / dmalloc / install.lib / SAMPLE / MODULE2.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-01  |  1.2 KB  |  28 lines

  1. /***************************************************************************/
  2. /*                                                                         */
  3. /*         File : MODULE2.C                                                */
  4. /*                                                                         */
  5. /*      Version : 1.0                                                      */
  6. /*         Date : 08/30/91                                                 */
  7. /*                                                                         */
  8. /*       Author : Ernest Vogelsinger                                       */
  9. /*                                                                         */
  10. /*  Description : Module 2 for DMalloc demo program                        */
  11. /*                                                                         */
  12. /*                                                                         */
  13. /*                  (c) E.Vogelsinger 1991, 1992                           */
  14. /***************************************************************************/
  15.  
  16. #include <stddef.h>
  17. #include <malloc.h>
  18.  
  19. #define _DMALLOC
  20. #include <dmalloc.h>
  21.  
  22. void *alloc2(int size)
  23. {
  24.    return (calloc(size, 1));
  25. }
  26.  
  27.  
  28.