stdio.h 775 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _BITS_STDIO_H
  2. #define _BITS_STDIO_H
  3. // XXX: this is only here because cbindgen can't handle string constants
  4. #define P_tmpdir "/tmp"
  5. typedef struct FILE FILE;
  6. // A typedef doesn't suffice, because libgmp uses this definition to check if
  7. // STDIO was loaded.
  8. #define FILE FILE
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. int asprintf(char **strp, const char * fmt, ...);
  13. int fprintf(FILE * stream, const char * fmt, ...);
  14. int printf(const char * fmt, ...);
  15. int snprintf(char *s, size_t n, const char * fmt, ...);
  16. int sprintf(char *s, const char * fmt, ...);
  17. int fscanf(FILE * stream, const char * fmt, ...);
  18. int scanf(const char * fmt, ...);
  19. int sscanf(const char * input, const char * fmt, ...);
  20. #ifdef __cplusplus
  21. } // extern "C"
  22. #endif
  23. #endif /* _BITS_STDIO_H */