ciabatta/include/stdio.h

26 lines
566 B
C
Raw Normal View History

2023-07-27 13:49:53 +00:00
#pragma once
2023-08-26 07:39:40 +00:00
#include <cia/def.h>
2023-09-10 00:30:56 +00:00
#include <cia/sync.h>
2023-07-27 13:49:53 +00:00
#include <tinyrt.h>
typedef struct FILE FILE;
struct FILE {
_RT_File rt_file;
2023-09-10 00:30:56 +00:00
Cia_Mutex mutex;
2023-07-27 13:49:53 +00:00
};
#define EOF (-1)
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stderr;
FILE *fopen(const char *restrict filename, const char *restrict mode);
int fgetc(FILE *file);
int fputc(int c, FILE *file);
size_t fread(void *restrict buf, size_t size, size_t count, FILE *restrict file);
size_t fwrite(void const *restrict buf, size_t size, size_t count, FILE *restrict file);
int fclose(FILE *file);