Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 1016 Bytes

File metadata and controls

42 lines (40 loc) · 1016 Bytes
title Allocating Zero Memory | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-language
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
memory allocation, zero memory
zero memory
ms.assetid 768f2ab9-83a1-4887-8eb5-c094c18489a8
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
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