SingingCat 0
application
umm_malloc.h
1/* ----------------------------------------------------------------------------
2 * umm_malloc.h - a memory allocator for embedded systems (microcontrollers)
3 *
4 * See copyright notice in LICENSE.TXT
5 * ----------------------------------------------------------------------------
6 */
7
8#ifndef UMM_MALLOC_H
9#define UMM_MALLOC_H
10
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/* ------------------------------------------------------------------------ */
18
19extern void umm_init_heap(void *ptr, size_t size);
20extern void umm_init(void);
21
22extern void *umm_malloc(size_t size);
23extern void *umm_calloc(size_t num, size_t size);
24extern void *umm_realloc(void *ptr, size_t size);
25extern void umm_free(void *ptr);
26
27/* ------------------------------------------------------------------------ */
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif /* UMM_MALLOC_H */