File: alloc.h

package info (click to toggle)
mcl 1%3A02-035-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,108 kB
  • ctags: 1,361
  • sloc: ansic: 18,031; sh: 453; makefile: 234
file content (46 lines) | stat: -rw-r--r-- 703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 *    Copyright (C) 1999-2002 Stijn van Dongen.
*/

#ifndef util_alloc_h__
#define util_alloc_h__

#include <stdlib.h>
#include <stdio.h>

#include "types.h"


void* mcxAlloc
(  int               size
,  mcxOnFail         ON_FAIL
)  ;

void* mcxRealloc
(  void*             object
,  int               new_size
,  mcxOnFail         ON_FAIL
)  ;

void mcxFree
(  void*             object
)  ;

void* mcxNAlloc
(  
   int               n_elem
,  int               elem_size
,  void* (*obInit) (void *)
,  mcxOnFail         ON_FAIL
)  ;

void mcxMemDenied
(  FILE*             channel
,  const char*       requestee
,  const char*       unittype
,  int               n
)  ;


#endif /* UTIL_ALLOC_H */