-
Notifications
You must be signed in to change notification settings - Fork 0
/
alloc.h
23 lines (19 loc) · 1.1 KB
/
alloc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* alloc.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: marvin <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/06 12:42:46 by marvin #+# #+# */
/* Updated: 2023/10/06 12:44:35 by marvin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ALLOC_H
# define ALLOC_H
# include <stddef.h>
void *_Nonnull safe_alloc(size_t bytes);
void *_Nonnull safe_realloc(void *_Nonnull ptr, size_t size);
void safe_free(void *_Nullable ptr);
void safe_free_all(void);
#endif