/home/mandrake/rpm/BUILD/sc68-2.2.1/file68/alloc68.h File Reference
memory allocation handler.
More...
Go to the source code of this file.
Detailed Description
memory allocation handler.
- Author:
- Benjamin Gerard
- Date:
- 2003/04/11
- Id
- alloc68.h,v 2.3 2003/08/30 01:27:08 benjihan Exp
SC68 memory allocation handler module provides function to allocate and free memory buffer.
Typedef Documentation
Function Documentation
void* SC68alloc |
( |
unsigned int |
n |
) |
|
Allocate dynamic memory.
The SC68alloc() function calls user defined dynamic memory allocation handler.
- Parameters:
-
| n | Size of buffer to allocate. |
- Returns:
- pointer to allocated memory buffer.
- Return values:
-
- See also:
- SC68set_alloc()
-
SC68free()
void SC68free |
( |
void * |
data |
) |
|
Free dynamic memory.
The SC68free() function calls user defined dynamic memory free handler.
- Parameters:
-
| data | Previously allocated memory buffer. |
- Returns:
- pointer to allocated memory
- Return values:
-
- See also:
- SC68set_free()
-
SC68alloc()
Set/get dynamic memory allocation handler.
- Parameters:
-
| alloc | Set new alloc handler (0:get old value). |
- Returns:
- previous alloc handler.
- See also:
- SC68alloc()
Set/get dynamic memory free handler.
- Parameters:
-
| free | Set new free handler (0:get old value). |
- Returns:
- previous free handler.
- See also:
- SC68free()