Loading...
Searching...
No Matches
malloc.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
30
31#include <stdlib.h>
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
42void *malloc(size_t size);
43
54void *realloc(void *ptr, size_t size);
55
64void *calloc(size_t size, size_t cnt);
65
72void free(void *ptr);
73
74#ifdef __cplusplus
75}
76#endif
77
void * calloc(size_t size, size_t cnt)
Allocate a memory block and set all its content to zeroes.
void * malloc(size_t size)
Allocation a block of memory.
void * realloc(void *ptr, size_t size)
Allocated a new block of memory and move the existing content.
void free(void *ptr)
This is a no-op.