M7350/bootable/bootloader/lk/include/stdio.h

25 lines
747 B
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
#ifndef __STDIO_H
#define __STDIO_H
#include <debug.h>
#include <printf.h>
2024-09-09 08:57:42 +00:00
typedef struct {
char *fpos; /* Current position of file pointer (absolute address) */
void *base; /* Pointer to the base of the file */
unsigned short handle; /* File handle */
short flags; /* Flags (see FileFlags) */
short unget; /* 1-byte buffer for ungetc (b15=1 if non-empty) */
unsigned long alloc; /* Number of currently allocated bytes for the file */
unsigned short buffincrement; /* Number of bytes allocated at once */
} FILE;
2024-09-09 08:52:07 +00:00
void putc(char c);
int puts(const char *str);
int getc(char *c); // XXX not really getc
2024-09-09 08:57:42 +00:00
size_t fwrite(const void *buf, size_t size, size_t count, FILE *stream);
int sscanf(const char *str, const char *format, ...);
2024-09-09 08:52:07 +00:00
#endif