File: cg_malloc.h

package info (click to toggle)
libcgns 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,740 kB
  • ctags: 4,493
  • sloc: ansic: 46,717; fortran: 1,341; sh: 368; makefile: 259
file content (19 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __CG_MALLOC_H__
#define __CG_MALLOC_H__

#define malloc(S)    cgmalloc(S)
#define realloc(P,S) cgrealloc(P,S)
#define calloc(N,S)  cgcalloc(N,S)
#define free(P)      cgfree(P)

extern void  *cgmalloc(size_t);
extern void  *cgrealloc(void *,size_t);
extern void  *cgcalloc(size_t,size_t);
extern void   cgfree(void *);

extern size_t cgmemnow();
extern size_t cgmemmax();
extern size_t cgalloccalls();
extern size_t cgfreecalls();

#endif