aboutsummaryrefslogtreecommitdiff
path: root/chad/remove_all.h
diff options
context:
space:
mode:
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