Piojo Alloc/Free implementation.
void* piojo_alloc_def_alloc |
( |
size_t |
size | ) |
|
Default alloc. Calls malloc()
.
- Parameters
-
[in] | size | Number of bytes to allocate. |
- Returns
- Pointer to allocated memory.
void piojo_alloc_def_free |
( |
const void * |
ptr | ) |
|
Default free. Calls free()
.
- Parameters
-
[in] | ptr | Pointer to allocated memory. |
void* piojo_alloc_def_realloc |
( |
const void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
Default realloc. Calls realloc()
.
- Parameters
-
[in] | ptr | Pointer to allocated memory. |
[in] | size | Number of bytes to reallocate. |
- Returns
- Pointer to reallocated memory.