title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | translation.priority.ht | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Allocating Zero Memory | Microsoft Docs |
11/01/2016 |
visual-studio-dev14 |
|
article |
|
|
768f2ab9-83a1-4887-8eb5-c094c18489a8 |
6 |
mikeblome |
mblome |
ghogen |
|
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.