File: xmalloc.h

package info (click to toggle)
lookup 1.08b-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,112 kB
  • ctags: 1,306
  • sloc: ansic: 12,638; makefile: 245; 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 */