wut/include/coreinit/internal.h
Daniel K. O. (dkosmari) 9c656b7128 - Added WUT_FORMAT_PRINTF to catch format string errors in printf-like functions.
- Fixed a few format string bugs, in `libwhb/crash.c` and `wutdevoptab`, where there was a
  mismatch of specifiers and arguments that could lead to crashes.

- Made debug prints use `%p` when printing pointers.

--HG--
branch : printf-attribute-hg
2024-10-07 23:01:40 -03:00

15 lines
193 B
C

#pragma once
#include <wut.h>
#ifdef __cplusplus
extern "C" {
#endif
int
__os_snprintf(char *buf, size_t n, const char *format, ... )
WUT_FORMAT_PRINTF(3, 4);
#ifdef __cplusplus
}
#endif