stdio.h 541 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __GBLIBC_STDIO_H_
  2. #define __GBLIBC_STDIO_H_
  3. #include <stdarg.h>
  4. #include <stdint.h>
  5. #undef EOF
  6. #define EOF (-1)
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. int putchar(int character);
  11. int puts(const char* str);
  12. char* gets(char* str);
  13. int vsnprintf(char* buf, size_t bufsize, const char* fmt, va_list args);
  14. int snprintf(char* buf, size_t bufsize, const char* fmt, ...);
  15. int sprintf(char* buf, const char* fmt, ...);
  16. int vprintf(const char* fmt, va_list args);
  17. int printf(const char* fmt, ...);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif