# C memory management library

> C++ Atlas: `cppatlas.com/w/cpp/memory/c` | Source: https://en.cppreference.com/w/cpp/memory/c | Domain: Memory management | Standards: C++17

## Official Specification Summary (cppreference)

### Functions

Defined in header `<cstdlib>`

- `malloc`: allocates memory (function)
- `aligned_alloc` (C++17): allocates aligned memory (function)
- `calloc`: allocates and zeroes memory (function)
- `realloc`: expands or shrinks previously allocated memory block (function)
- `free`: deallocates previously allocated memory (function)

### See also

- [C documentation for C memory management library](https://en.cppreference.com/w/c/memory)

---
Attribution: content from https://en.cppreference.com/w/cpp/memory/c (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.