From 49feb50f22e2db90556f79dbc0de36f8ecb8b521 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 26 Oct 2019 17:22:55 -0500 Subject: Add ln -r and relative_path() to lib, plus test. And a few small cleanups while I was there. --- lib/lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index b48d320e..f3eacb9d 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -402,6 +402,7 @@ mode_t string_to_mode(char *mode_str, mode_t base); void mode_to_string(mode_t mode, char *buf); char *getbasename(char *name); char *fileunderdir(char *file, char *dir); +char *relative_path(char *from, char *to); void names_to_pid(char **names, int (*callback)(pid_t pid, char *name), int scripts); -- cgit v1.2.3