sc68fordevelopers  2.2.1
alloc68.h
Go to the documentation of this file.
1 
15 /* Copyright (C) 1998-2003 Benjamin Gerard */
16 
17 
18 #ifndef _ALLOC68_H_
19 #define _ALLOC68_H_
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
26 typedef void * (*sc68_alloc_t)(unsigned int);
27 
29 typedef void (*sc68_free_t)(void *);
30 
44 void * SC68alloc(unsigned int n);
45 
59 void SC68free(void * data);
60 
70 
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* #define _ALLOC68_H_ */
sc68_alloc_t SC68set_alloc(sc68_alloc_t alloc)
Set/get dynamic memory allocation handler.
void *(* sc68_alloc_t)(unsigned int)
Alloc function (malloc).
Definition: alloc68.h:26
void * SC68alloc(unsigned int n)
Allocate dynamic memory.
sc68_free_t SC68set_free(sc68_free_t free)
Set/get dynamic memory free handler.
void SC68free(void *data)
Free dynamic memory.
void(* sc68_free_t)(void *)
Free function (free).
Definition: alloc68.h:29