Go to the source code of this file.
Functions | |
void * | kb_alloc (unsigned long size) |
void * | kb_realloc (void *ptr, unsigned long size) |
void* kb_alloc | ( | unsigned long | size | ) |
This function allocates safely memory. Produces an fatal error when no more memory is available.
size | size in bytes |
Definition at line 21 of file kb_memory.c.
References KB_ERROR_NOMEM, and KB_FATAL.
Referenced by knet_init(), koa_net_playsound(), and main().
void* kb_realloc | ( | void * | ptr, | |
unsigned long | size | |||
) |
This function reallocates safely memory. Produces an fatal error when no more memory is available
ptr | Pointer to the block of memory to resize | |
size | New size of the memory block |
Definition at line 40 of file kb_memory.c.
References KB_ERROR_NOMEM, and KB_FATAL.
Referenced by knet_printf(), and knet_vprintf().