aboutsummaryrefslogtreecommitdiff
path: root/src/darr.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:23:13 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:23:13 +0100
commit903ae3ab04eda63df286bbb32fe83603ffbbd0e0 (patch)
tree821808b948fed66174e0b0e4118d222395ed865e /src/darr.h
parentdcedb70a5ccead41574cf857b369d264c87dd7e0 (diff)
downloadovm-903ae3ab04eda63df286bbb32fe83603ffbbd0e0.tar.gz
ovm-903ae3ab04eda63df286bbb32fe83603ffbbd0e0.tar.bz2
ovm-903ae3ab04eda63df286bbb32fe83603ffbbd0e0.zip
Helper darr functions to read/write bytes from FILE *
Diffstat (limited to 'src/darr.h')
-rw-r--r--src/darr.h4
1 files changed, 4 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
#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