From e7ef3f208c109357538b1f68af10bcd78db95c95 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 8 Apr 2022 22:30:12 -0700 Subject: Changeset: 3 More work --- source/Utils.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 source/Utils.hpp (limited to 'source/Utils.hpp') diff --git a/source/Utils.hpp b/source/Utils.hpp new file mode 100644 index 0000000..3d04e62 --- /dev/null +++ b/source/Utils.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include +#include + +namespace Utils { + +enum IoMode { + Read, + WriteTruncate, + WriteAppend, +}; + +FILE* OpenCstdioFile(const std::filesystem::path& path, IoMode mode, bool binary = false); +FILE* OpenCstdioFile(const char* path, IoMode mode, bool binary = false); + +} // namespace Utils -- cgit v1.2.3-70-g09d2