From 903ae3ab04eda63df286bbb32fe83603ffbbd0e0 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 23:23:13 +0100 Subject: Helper darr functions to read/write bytes from FILE * --- src/darr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/darr.h') diff --git a/src/darr.h b/src/darr.h index e3103ea..1d5820b 100644 --- a/src/darr.h +++ b/src/darr.h @@ -13,6 +13,7 @@ #ifndef DARR_H #define DARR_H +#include #include #include "./base.h" @@ -32,4 +33,7 @@ void darr_append_byte(darr_t *, byte); void darr_append_bytes(darr_t *, byte *, size_t); byte darr_at(darr_t *, size_t); +void darr_write_file(darr_t *, FILE *); +darr_t darr_read_file(FILE *); + #endif -- cgit v1.2.3-13-gbd6f