home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / source / xmalloc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-10-19  |  448 b   |  23 lines

  1.  
  2. #ifndef __XMALLOC_H__
  3. #define __XMALLOC_H__
  4.  
  5. #include <stddef.h>
  6.  
  7. /*    
  8.  *    All of these routines invariably return success,
  9.  *    or abort the program.
  10.  */
  11. extern void xminit(void);
  12. extern void xminfo(void);
  13. extern void xmterm(void);
  14.  
  15. extern void *xmalloc(size_t sz);
  16. extern void *xcalloc(size_t sz);
  17. extern void *xrealloc(void *ptr, size_t sz);
  18. extern void xfree(void *ptr);
  19. extern char *xstrdup(const char *str);
  20. extern char *xintdup(int x);
  21.  
  22. #endif
  23.