Skip to content

Commit

Permalink
compat stdio: FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
PyryM committed Aug 30, 2021
1 parent 4b078f8 commit dd9f8cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dist/include/compat/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@ int sprintf(char *, const char *, ...);
int snprintf(char *, size_t, const char *, ... );
int sscanf(const char *, const char *, ...);

typedef struct FILE FILE;
size_t fread(void* ptr, size_t size, size_t count, FILE* stream);
size_t fwrite(void *ptr, size_t size, size_t count, FILE *stream);
FILE* fopen(const char* filename, const char* mode);
int fclose(FILE* stream);
int fseek(FILE* stream, long int offset, int origin);
long int ftell(FILE* stream);
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2

#endif /* TRUSS_STDIO_H */

0 comments on commit dd9f8cc

Please sign in to comment.