ReactOS 0.4.17-dev-357-ga8f14ff
calloc.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS CRT heap support library
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Implementation of calloc
5 * COPYRIGHT: Copyright 2026 Timo Kreuzer <timo.kreuzer@reactos.org>
6 */
7
8#include <malloc.h>
9#include <windef.h>
10#include <winbase.h>
11
12void* __cdecl calloc(size_t Count, size_t Size)
13{
14 size_t bytes = Count * Size;
15
16 if ((Size != 0) && (bytes / Size != Count))
17 {
18 return NULL;
19 }
20
22}
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
#define __cdecl
Definition: corecrt.h:121
int Count
Definition: noreturn.cpp:7
#define calloc
Definition: rosglue.h:14
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4539