#pragma once #include #include #include typedef Result (*callback_t)(char, void*); Result cstyle_format(const char* format, callback_t callback, void* arg, va_list ap); Result vstring_format(char* buf, size_t max, const char* format, va_list ap); Result string_format(char* buf, size_t max, const char* format, ...);