2022-05-02 15:29:02 +02:00
|
|
|
#ifndef MEM_UTILS_H_
|
|
|
|
|
#define MEM_UTILS_H_
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2022-03-30 17:52:41 +02:00
|
|
|
char *mem_alloc_and_copy_char(char c);
|
|
|
|
|
void *mem_alloc_and_copy(const void *data, size_t size);
|
|
|
|
|
uint8_t mem_alloc_and_format_uint(uint32_t value, const uint8_t max_chars);
|
2022-05-02 15:29:02 +02:00
|
|
|
|
|
|
|
|
#endif // MEM_UTILS_H_
|