Skip to content

Latest commit

 

History

History
44 lines (42 loc) · 1.07 KB

allocating-zero-memory.md

File metadata and controls

44 lines (42 loc) · 1.07 KB
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
devlang-cpp
article
C++
C
memory allocation, zero memory
zero memory
768f2ab9-83a1-4887-8eb5-c094c18489a8
6
mikeblome
mblome
ghogen
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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

Library Functions