aboutsummaryrefslogtreecommitdiff
path: root/chad/remove_all.h
diff options
context:
space:
mode:
authoragvxov2026-02-18 08:58:34 +0000
committerGitHub2026-02-18 08:58:34 +0000
commit0d4fc3389b69b70048cd50e614cb9807469cdcd0 (patch)
tree379fef43cc5182b21328eed19ccfdf15c8e96648 /chad/remove_all.h
parent42541df62871aaf403c0d62de1fdb44c862f2ea5 (diff)
parent8035daa04137c5412050a2f30e6748db256a576b (diff)
downloadlibchad-0d4fc3389b69b70048cd50e614cb9807469cdcd0.tar.xz
libchad-0d4fc3389b69b70048cd50e614cb9807469cdcd0.tar.zst
Merge pull request #1 from BasedProject/8e8m
This is not a pull request, just a hivis text dump
Diffstat (limited to 'chad/remove_all.h')
-rw-r--r--chad/remove_all.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chad/remove_all.h b/chad/remove_all.h
new file mode 100644
index 0000000..2c218b1
--- /dev/null
+++ b/chad/remove_all.h
@@ -0,0 +1,11 @@
+#ifndef REMOVE_ALL_H
+#define REMOVE_ALL_H
+
+/* C imitation of `std::filesystem::remove_all()` from C++17.
+ * Unlike standard C remove(3), it can remove recursively.
+ */
+int remove_all(const char * const p);
+
+// The contents of this file are Public Domain.
+
+#endif