Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 821 Bytes

allocating-zero-memory.md

File metadata and controls

24 lines (22 loc) · 821 Bytes
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Allocating Zero Memory | Microsoft Docs
11/04/2016
cpp-language
article
C++
memory allocation, zero memory
zero memory
768f2ab9-83a1-4887-8eb5-c094c18489a8
6
mikeblome
mblome
ghogen

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