picofuse

mem.h
Go to the documentation of this file.
1 
20 #pragma once
21 #include <stddef.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
28 // PUBLIC METHODS
29 
39 void *sys_malloc(size_t size);
40 
49 void *sys_calloc(size_t count, size_t size);
50 
60 void *sys_realloc(void *ptr, size_t size);
61 
67 void sys_free(void *ptr);
68 
71 
73 #ifdef __cplusplus
74 }
75 #endif
void * sys_calloc(size_t count, size_t size)
Allocate zero-initialized memory from the default allocator.
void * sys_malloc(size_t size)
Allocate memory from the default allocator.
void * sys_realloc(void *ptr, size_t size)
Resize an allocation owned by the default allocator.
void sys_free(void *ptr)
Release an allocation owned by the default allocator.