telodendria/src/include/Stream.h
Jordan Bancino 92da3542a6 Move low-level fopencookie()/funopen() functionality to Io API.
The Stream API now provides the buffered I/O functionality analogous to
the C standard library.
2023-03-15 16:47:34 +00:00

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 */