aboutsummaryrefslogtreecommitdiff
path: root/common/file.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-01-01 19:19:47 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-01-01 19:19:47 +0100
commite56374fa85ab5cac4c9a4b264ea994c750a2bae0 (patch)
tree8fa4e2c1f2ccd482b55b27df6549d09047ad050c /common/file.h
parent6ec67846ffadb5bd1be13d5a7ea3abcf67f1c536 (diff)
downloaduwu-lang-e56374fa85ab5cac4c9a4b264ea994c750a2bae0.tar.xz
Use uwu-common as submodule
Diffstat (limited to 'common/file.h')
-rw-r--r--common/file.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/common/file.h b/common/file.h
deleted file mode 100644
index c5e8036..0000000
--- a/common/file.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef _COMMON_FILE_H_
-#define _COMMON_FILE_H_
-
-#include <stdio.h>
-#include <stdbool.h>
-
-inline static bool file_exists(const char *filename)
-{
- FILE *f = fopen(filename, "r");
-
- if (f) {
- fclose(f);
- return true;
- }
-
- return false;
-}
-
-#endif