aboutsummaryrefslogtreecommitdiff
path: root/chad/experimental/root.c
diff options
context:
space:
mode:
authorEmil Williams2026-02-20 23:14:51 +0000
committerEmil Williams2026-02-20 23:14:51 +0000
commit5977e472ae122bd8135b7428d9093652d51a2cba (patch)
tree3ba84f26033306a2bc147100d02b350b900f1c20 /chad/experimental/root.c
parent88e12f4a22111903fc23488898f073502639635c (diff)
downloadlibchad-5977e472ae122bd8135b7428d9093652d51a2cba.tar.xz
libchad-5977e472ae122bd8135b7428d9093652d51a2cba.tar.zst
per notes
Diffstat (limited to 'chad/experimental/root.c')
-rw-r--r--chad/experimental/root.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/chad/experimental/root.c b/chad/experimental/root.c
deleted file mode 100644
index f7447eb..0000000
--- a/chad/experimental/root.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <limits.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <chad/experimental/root.h>
-void Root(char * filename) {
- char path[PATH_MAX], * terminator;
- if (!realpath(filename, path)) { return; }
- if ((terminator = strrchr(path, '/'))) {
- *terminator = '\0';
- chdir(path);
- }
-}