Add comments to Format.h
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-17 12:43:29 +01:00
parent abbed13f27
commit 16e00bada0
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -6,7 +6,14 @@
typedef Result<void> (*callback_t)(char, void*);
typedef void (*pure_callback_t)(char, void*);
// Used to format anything that can fail (writing to C FILEs, etc...)
Result<usize> cstyle_format(const char* format, callback_t callback, void* arg, va_list ap);
// Used to format anything that cannot fail (formatting to a string, writing to the serial port (kernel-only))
usize pure_cstyle_format(const char* format, pure_callback_t callback, void* arg, va_list ap);
// Convenience function which outputs into a fixed-size buffer (not unlike vsnprintf)
usize vstring_format(char* buf, usize max, const char* format, va_list ap);
// Convenience function which outputs into a fixed-size buffer (not unlike snprintf)
usize string_format(char* buf, usize max, const char* format, ...);