Remove dangerous mg_pfn_realloc(). Add %q printf specifier

This commit is contained in:
cpq committed 2022-08-10 18:27:58 +01:00
1 parent 24cb9467c0
commit 2ba3630de9
8 files changed
+65 -96

No files matched your search

+1 -2
View File
@@ -5,8 +5,7 @@
typedef void (*mg_pfn_t)(char, void *); // Custom putchar
typedef size_t (*mg_pm_t)(mg_pfn_t, void *, va_list *); // %M printer
void mg_pfn_realloc(char ch, void *param); // Print to malloced str
void mg_pfn_iobuf(char ch, void *param); // Print to iobuf
void mg_pfn_iobuf(char ch, void *param); // iobuf printer
size_t mg_lld(char *buf, int64_t val, bool is_signed, bool is_hex);
double mg_atod(const char *buf, int len, int *numlen);