Added an option to read input from a file.

This commit is contained in:
2022-07-03 11:56:24 -05:00
parent 053f0ea584
commit 50655fbc1a
3 changed files with 88 additions and 33 deletions
+15
View File
@@ -0,0 +1,15 @@
#ifndef FUTIL_H
#define FUTIL_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifndef FUTIL_READ_SIZE
#define FUTIL_READ_SIZE 2097152 //Default here is 2MiB
#endif
int ReadAllString(const char*, char**, size_t*);
#endif