forked from Telodendria/Telodendria
Jordan Bancino
92da3542a6
The Stream API now provides the buffered I/O functionality analogous to the C standard library.
43 lines
607 B
C
43 lines
607 B
C
#ifndef TELODENDRIA_STREAM_H
|
|
#define TELODENDRIA_STREAM_H
|
|
|
|
#include <Io.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
typedef struct Stream Stream;
|
|
|
|
extern Stream *
|
|
StreamOpen(Io *io);
|
|
|
|
extern int
|
|
StreamClose(Stream *);
|
|
|
|
extern int
|
|
StreamVprintf(Stream *, const char *, va_list);
|
|
|
|
extern int
|
|
StreamPrintf(Stream *, const char *, ...);
|
|
|
|
extern int
|
|
StreamGetc(Stream *);
|
|
|
|
extern int
|
|
StreamUngetc(Stream *, int);
|
|
|
|
extern int
|
|
StreamPutc(Stream *, int);
|
|
|
|
extern int
|
|
StreamEof(Stream *);
|
|
|
|
extern int
|
|
StreamError(Stream *);
|
|
|
|
extern void
|
|
StreamClearError(Stream *);
|
|
|
|
extern int
|
|
StreamFlush(Stream *);
|
|
|
|
#endif /* TELODENDRIA_STREAM_H */
|