C memory management library - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# C memory management library

From cppreference.com
< c

### [edit] Functions

Defined in header `<stdlib.h>`
malloc | allocates memory (function)
calloc | allocates and zeroes memory (function)
realloc | expands previously allocated memory block (function)
free | deallocates previously allocated memory (function)
aligned_alloc (C11) | allocates aligned memory (function)

### [edit] References

- C11 standard (ISO/IEC 9899:2011):

  - 7.22.3 Memory management functions (p: 347-349)

- C99 standard (ISO/IEC 9899:1999):

  - 7.20.3 Memory management functions (p: 313-314)

- C89/C90 standard (ISO/IEC 9899:1990):

  - 4.10.3 Memory management functions

### [edit] See also

C++ documentation for C memory management library

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/memory&oldid=76294"