stdio.h 684 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <stdarg.h>
  3. #include <stddef.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define SEEK_SET 0
  8. #define SEEK_END 1
  9. typedef int FILE;
  10. extern FILE *stdout, *stderr;
  11. int fprintf(FILE *stream, const char *format, ...);
  12. int vsnprintf(char *s, size_t n, const char *format, va_list arg);
  13. size_t fwrite(const void *ptr, size_t size, size_t count, FILE *stream);
  14. FILE *fopen(const char *filename, const char *mode);
  15. int fclose(FILE *stream);
  16. long int ftell(FILE *stream);
  17. int fseek(FILE *stream, long int offset, int origin);
  18. size_t fread(void *ptr, size_t size, size_t count, FILE *stream);
  19. int fputs(const char *str, FILE *stream);
  20. #ifdef __cplusplus
  21. }
  22. #endif