2
0

stdio.h 657 B

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