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
38 extern "C" {
39 #endif
40 
46 void *malloc(size_t size);
47 
58 void *realloc(void *ptr, size_t size);
59 
68 void *calloc(size_t size, size_t cnt);
69 
76 void free(void *ptr);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* MALLOC_H */
83 
realloc
void * realloc(void *ptr, size_t size)
Allocated a new block of memory and move the existing content.
malloc
void * malloc(size_t size)
Allocation a block of memory.
calloc
void * calloc(size_t size, size_t cnt)
Allocate a memory block and set all its content to zeroes.
free
void free(void *ptr)
This is a no-op.