changed rgb deal, and improve memorybook with 2d

This commit is contained in:
hugogogo
2022-05-01 22:55:00 +02:00
parent 43852938c4
commit eb5f2db7fa
9 changed files with 60 additions and 54 deletions

View File

@@ -1,10 +1,15 @@
#ifndef MEMORYBOOK_H
# define MEMORYBOOK_H
// memorybook.c
void mb_init(void(*f)(void*), void *param);
void *mb_alloc(size_t size);
void mb_add(void *addr);
void mb_free(void *addr);
void mb_exit(char *str);
void mb_exit(char *str, int status);
// memorybook_2d.c
void mb_add_2d(void **addr, int nb);
void mb_free_2d(void **addr, int nb);
#endif