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 
30 #ifndef MALLOC_H
31 #define MALLOC_H
32 
33 #include <stdlib.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
44 void *malloc(size_t size);
45 
56 void *realloc(void *ptr, size_t size);
57 
66 void *calloc(size_t size, size_t cnt);
67 
74 void free(void *ptr);
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* MALLOC_H */
81 
void * realloc(void *ptr, size_t size)
Allocated a new block of memory and move the existing content.
void * malloc(size_t size)
Allocation a block of memory.
void * calloc(size_t size, size_t cnt)
Allocate a memory block and set all its content to zeroes.
void free(void *ptr)
This is a no-op.
stdlib.h wrapper for MSP430