diff options
author | c | 2023-11-25 22:52:11 -0500 |
---|---|---|
committer | c | 2023-11-25 22:52:11 -0500 |
commit | 418543ed8d974b06b71694da5c71059eb45897b5 (patch) | |
tree | 65f0fc3122acf1d5b25b1d912cdea20dcc454e4c /src/include |
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/bf.h | 9 | ||||
-rw-r--r-- | src/include/util.h | 15 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/include/bf.h b/src/include/bf.h new file mode 100644 index 0000000..611f685 --- /dev/null +++ b/src/include/bf.h @@ -0,0 +1,9 @@ +#ifndef BF_H +#define BF_H + +#include <stdlib.h> +#include <stdio.h> + +void bf_run(char* src, FILE* out); + +#endif diff --git a/src/include/util.h b/src/include/util.h new file mode 100644 index 0000000..4a41ec6 --- /dev/null +++ b/src/include/util.h @@ -0,0 +1,15 @@ +#ifndef UTIL_H +#define UTIL_H + +#include <stdlib.h> +#include <stdarg.h> +#include <stdio.h> +#include <string.h> + +void util_die(const char* fmt, ...); // print msg and exit +void util_log(const char* fmt, ...); // print msg +char* util_get_src(char* arg); // parse argtuments +char* util_src_from_stdin(); // get source from stdin +char* util_src_from_fpath(FILE* f); // get source from file path + +#endif |