27 lines
657 B
C
27 lines
657 B
C
#ifndef _BITS_STDIO_H
|
|
#define _BITS_STDIO_H
|
|
|
|
// XXX: this is only here because cbindgen can't handle string constants
|
|
#define P_tmpdir "/tmp"
|
|
|
|
typedef struct FILE FILE;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int asprintf(char **strp, const char * fmt, ...);
|
|
int fprintf(FILE * stream, const char * fmt, ...);
|
|
int printf(const char * fmt, ...);
|
|
int snprintf(char *s, size_t n, const char * fmt, ...);
|
|
int sprintf(char *s, const char * fmt, ...);
|
|
int fscanf(FILE * stream, const char * fmt, ...);
|
|
int scanf(const char * fmt, ...);
|
|
int sscanf(const char * input, const char * fmt, ...);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif /* _BITS_STDIO_H */
|