32 lines
682 B
C
Raw Normal View History

2024-11-11 15:19:36 +02:00
#ifndef _YGGDRASIL_STDIO_H
#define _YGGDRASIL_STDIO_H 1
2024-11-15 11:14:08 +02:00
#if defined(__cplusplus)
extern "C" {
#endif
2024-11-11 15:19:36 +02:00
struct __FILE;
typedef struct __FILE FILE;
2025-03-09 11:59:38 +02:00
#define P_tmpdir "/tmp"
2024-11-11 15:19:36 +02:00
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stderr;
2024-11-15 11:14:08 +02:00
int asprintf(char **strp, const char *fmt, ...);
2024-11-11 15:19:36 +02:00
int dprintf(int fd, const char *fmt, ...);
int fprintf(FILE *fp, const char *fmt, ...);
int printf(const char *fmt, ...);
int snprintf(char *buf, size_t len, const char *fmt, ...);
int sprintf(char *buf, const char *fmt, ...);
2024-11-15 11:14:08 +02:00
int sscanf(const char *str, const char *fmt, ...);
int scanf(const char *fmt, ...);
int fscanf(FILE *fp, const char *fmt, ...);
2024-11-15 11:14:08 +02:00
#if defined(__cplusplus)
}
#endif
2024-11-11 15:19:36 +02:00
#endif