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.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for