diff options
Diffstat (limited to 'src/io.h')
-rw-r--r-- | src/io.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -2,15 +2,28 @@ #define ALGOS_IO_H_INCLUDED #include <stddef.h> +#include <stdint.h> struct stream { size_t n; size_t stride; + ssize_t last_idx; int fd; int out; char *name; }; +/* for array implementation */ +struct entry_a { + uint64_t val; +}; + +/* for linked list implementation */ +struct entry_l { + uint32_t i; /* "pointer" to the next element. */ + uint64_t val; +}; + int stream_open(struct stream *in); int stream_close(struct stream *in); |