Telodendria/src/include/Stream.h

47 lines
655 B
C
Raw Normal View History

2023-03-15 02:40:23 +00:00
#ifndef TELODENDRIA_STREAM_H
#define TELODENDRIA_STREAM_H
#include <Io.h>
2023-03-15 02:40:23 +00:00
#include <stdarg.h>
typedef struct Stream Stream;
extern Stream *
StreamOpen(Io *io);
2023-03-15 02:40:23 +00:00
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);
2023-03-15 02:40:23 +00:00
extern int
StreamEof(Stream *);
extern int
StreamError(Stream *);
extern void
StreamClearError(Stream *);
extern int
StreamFlush(Stream *);
extern ssize_t
StreamCopy(Stream *, Stream *);
2023-03-15 02:40:23 +00:00
#endif /* TELODENDRIA_STREAM_H */