aboutsummaryrefslogtreecommitdiff
path: root/chad/remove_all.h
diff options
context:
space:
mode:
authoranon2026-02-18 10:01:21 +0100
committeranon2026-02-18 10:01:21 +0100
commit181baf15bc1f075cdf55b1bbe179c250148a2296 (patch)
treee61fdc3c62eea874195a5c6f7d93c8b6cc6ebb24 /chad/remove_all.h
parent4419754108de67c2f2e9e895449bdadc770502c6 (diff)
parent0d4fc3389b69b70048cd50e614cb9807469cdcd0 (diff)
downloadlibchad-181baf15bc1f075cdf55b1bbe179c250148a2296.tar.xz
libchad-181baf15bc1f075cdf55b1bbe179c250148a2296.tar.zst
Merge branch 'master' of https://github.com/BasedProject/libchad
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