Files
Yanis b28c406d4a Match most of libc (#80)
* started libc

* progress

* format

* match file_io.c

* match mem_funcs and math_api

* printf prog and match strtoul.c

* format

* match bsearch.c

* match ansi_fp.c

* make USE_CURRENT_LOCALE a global define

* started time.c

* match the printf function

* add splits for oot-u and oot-e

* cleanup

* review
2025-05-11 14:58:29 +02:00

55 lines
899 B
C

#ifndef STDIO_API_H
#define STDIO_API_H
#include "file_struc.h"
#include "revolution/types.h"
#include "wchar_io.h"
#ifdef __cplusplus
extern "C" {
#endif
enum __ReadProcActions {
__GetAChar,
__UngetAChar,
__TestForError
};
enum __WReadProcActions {
__GetAwChar,
__UngetAwChar,
__TestForwcsError
};
typedef struct {
char* CharStr;
size_t MaxCharCount;
size_t CharsWritten;
} __OutStrCtrl;
typedef struct {
char* NextChar;
int NullCharDetected;
} __InStrCtrl;
typedef struct {
wchar_t* wCharStr;
size_t MaxCharCount;
size_t CharsWritten;
} __wOutStrCtrl;
typedef struct {
wchar_t* wNextChar;
int wNullCharDetected;
} __wInStrCtrl;
size_t __fwrite(const void* pPtr, size_t memb_size, size_t num_memb, FILE* file);
int __StringRead(void*, int, int);
wint_t __wStringRead(void*, wint_t, int);
#ifdef __cplusplus
}
#endif
#endif