Update libc

This commit is contained in:
Alex
2023-05-05 21:02:11 +03:00
parent 2271e1c5c7
commit cbbd3d0456
6 changed files with 387 additions and 27 deletions

View File

@ -9,6 +9,13 @@
#define SEEK_CUR 1
#define SEEK_END 2
/**
* @brief EOF - End of file
*
* The value returned by several functions to indicate the end of file.
*/
#define EOF (-1)
struct _IO_FILE
{
size_t offset;
@ -26,9 +33,9 @@ extern "C"
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stderr;
#define stdin stdin
#define stdout stdout
#define stderr stderr
#define stdin stdin
#define stdout stdout
#define stderr stderr
FILE *fopen(const char *filename, const char *mode);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);