Allocating Zero Memory
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Allocating Zero Memory.
ANSI 4.10.3** The behavior of the calloc, malloc, or realloc function if the size requested is zero
The calloc, malloc, and realloc functions accept zero as an argument. No actual memory is allocated, but a valid pointer is returned and the memory block can be modified later by realloc.
Show: