Loading...
Searching...
No Matches
malloc.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
32#ifndef MALLOC_H
33#define MALLOC_H
34
35#include <stdlib.h>
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
46void *malloc(size_t size);
47
58void *realloc(void *ptr, size_t size);
59
68void *calloc(size_t size, size_t cnt);
69
76void free(void *ptr);
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* MALLOC_H */
83
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.