1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef ALGOS_IO_H_INCLUDED #define ALGOS_IO_H_INCLUDED #include <stddef.h> struct stream { size_t n; size_t stride; int fd; int out; char *name; }; int stream_open(struct stream *in); int stream_close(struct stream *in); #endif /* ALGOS_IO_H_INCLUDED */