stdio.h 675 B

12345678910111213141516171819202122232425262728
  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. #define EOF (-1)
  6. typedef struct FILE FILE;
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. int asprintf(char **strp, const char * fmt, ...);
  11. int fprintf(FILE * stream, const char * fmt, ...);
  12. int printf(const char * fmt, ...);
  13. int snprintf(char *s, size_t n, const char * fmt, ...);
  14. int sprintf(char *s, const char * fmt, ...);
  15. int fscanf(FILE * stream, const char * fmt, ...);
  16. int scanf(const char * fmt, ...);
  17. int sscanf(const char * input, const char * fmt, ...);
  18. #ifdef __cplusplus
  19. } // extern "C"
  20. #endif
  21. #endif /* _BITS_STDIO_H */