File: xmalloc.h

package info (click to toggle)
lookup 1.08b-5
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 1,108 kB
  • ctags: 1,305
  • sloc: ansic: 12,634; makefile: 236; perl: 174; sh: 53
file content (11 lines) | stat: -rw-r--r-- 258 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
#ifndef __XMALLOC_H__ /* file wrapper */
#define __XMALLOC_H__

#ifdef DEBUG_MALLOC
# include <malloc.h>
# define xmalloc(foo) malloc(foo)
#else
  extern void *xmalloc(unsigned len); /* Simple "get memory or die" malloc. */
#endif

#endif /* file wrapper */