malloc.h
Overview
Related Modules:
Description:
Declares APIs for allocating and releasing memory.
Since:
1.0
Version:
1.0
Summary
Functions
| Function Name | Description |
|---|---|
| malloc (size_t size) | void Dynamically allocates a block of uninitialized memory with the specified size. |
| calloc (size_t nmemb, size_t size) | void Dynamically allocates multiple blocks of memory with the specified size. |
| realloc (void ptr, size_t size) | void Changes the size of a previously allocated memory block pointed to by ptr to the specified size. |
| free (void ptr) | void Frees the memory space pointed to by ptr. |
| memalign (size_t alignment, size_t size) | void Allocates a block of memory with the specified size based on the given alignment mode. |
| malloc_usable_size (void *ptr) | size_t Obtains the size of the memory block pointed to by ptr. |
