2022-09-05 14:13:51 +00:00
|
|
|
#pragma once
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2022-09-06 16:25:38 +00:00
|
|
|
#define PRINTF_LIKE(n, m) __attribute__((format(printf, n, m)))
|
|
|
|
|
|
|
|
int printf(const char* fmt, ...) PRINTF_LIKE(1, 2);
|
|
|
|
int sprintf(char* __s, const char* fmt, ...) PRINTF_LIKE(2, 3);
|
|
|
|
int snprintf(char* __s, size_t max, const char* fmt, ...) PRINTF_LIKE(3, 4);
|
2022-09-05 14:13:51 +00:00
|
|
|
int vprintf(const char* fmt, va_list ap);
|
|
|
|
int vsprintf(char* __s, const char* fmt, va_list ap);
|
|
|
|
int vsnprintf(char* __s, size_t max, const char* fmt, va_list ap);
|