#include <stddef.h>
Go to the source code of this file.
|
void * | malloc (size_t size) |
|
void * | realloc (void *mem, size_t new_sz) |
|
void | free (void *mem) |
|
void | exit (int code) |
|
◆ exit()
Exit the process
- Parameters
-
code | The exit code of the process |
◆ free()
Frees a block of memory on the heap
- Parameters
-
mem | The block of memory to free |
◆ malloc()
void* malloc |
( |
size_t |
size | ) |
|
Allocates a block of memory on the heap
- Parameters
-
size | The size of the block to allocate |
- Returns
- The address of the allocated block, or NUL if the allocation failed
◆ realloc()
void* realloc |
( |
void * |
mem, |
|
|
size_t |
new_sz |
|
) |
| |
Changes a block of memory on the heap to a new size, or if mem is NULL, act like malloc
- Parameters
-
mem | The block of memory to change size |
new_sz | The size of the block to allocate |
- Returns
- The new address of the allocated block, or NUL if the allocation failed