Small refactoring to the format uint memory utils function

This commit is contained in:
Alexandre Paillier
2022-04-26 18:15:53 +02:00
parent 149e20cd11
commit 01ba4fb41f
4 changed files with 30 additions and 16 deletions

View File

@@ -4,8 +4,9 @@
#include <stdint.h>
#include <stdbool.h>
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);
char *mem_alloc_and_copy_char(char c);
void *mem_alloc_and_copy(const void *data, size_t size);
char *mem_alloc_and_format_uint(uint32_t value,
uint8_t *const written_chars);
#endif // MEM_UTILS_H_