diff ater/read_file.h @ 20:5405c1573027

ater: implement file reading
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 24 Jun 2024 08:50:29 +0000
parents
children db39e8855f3d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ater/read_file.h	Mon Jun 24 08:50:29 2024 +0000
@@ -0,0 +1,12 @@
+/*
+ * This header file defines the interface to the function that reads
+ * binary files in our ad hoc format for TRAU testing.
+ */
+
+#pragma once
+
+#include <stdint.h>
+#include <stdbool.h>
+
+int read_binary_file(const char *filename, bool is_efr, uint8_t **bufret,
+		     unsigned *size_ret);