diff options
Diffstat (limited to 'include/printf.h')
-rw-r--r-- | include/printf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/printf.h b/include/printf.h index ccd477cfbd..60baba629d 100644 --- a/include/printf.h +++ b/include/printf.h @@ -86,6 +86,7 @@ __stdlib_compat int vfnprintf(int (*addchar)(void *context, int c), * @param format Format string * @return EC_SUCCESS, or EC_ERROR_OVERFLOW if the output was truncated. */ +__attribute__((__format__(__printf__, 3, 4))) __stdlib_compat int snprintf(char *str, int size, const char *format, ...); /** |