printf.h 336 B

123456789101112
  1. #include <bits/types.h>
  2. #include <stdarg.h>
  3. #define _format(n,m) __attribute__((format(printf,n,m)))
  4. int printf(const char* fmt, ...) _format(1,2);
  5. int tracef(const char* fmt, ...) _format(1,2);
  6. int snprintf(char* buf, ulong len, const char* fmt, ...) _format(3,4);
  7. int vfdprintf(int fd, const char* fmt, va_list ap);
  8. #undef _format