diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 16:20:01 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 16:20:01 +0300 |
| commit | dbcb4228e0301c241b5d921fd64e6d6139f714e3 (patch) | |
| tree | 09bf856ac97e953a27a74f87f61135fddbf8af2a /src/path.c | |
| parent | 2ca159fb5c2a52f33c499eef1fa50a98a863b0f0 (diff) | |
| download | ek-dbcb4228e0301c241b5d921fd64e6d6139f714e3.tar.gz ek-dbcb4228e0301c241b5d921fd64e6d6139f714e3.zip | |
rename to ek
Diffstat (limited to 'src/path.c')
| -rw-r--r-- | src/path.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6,10 +6,10 @@ #include <stdlib.h> #include <errno.h> -#include <cu/path.h> -#include <cu/debug.h> +#include <ek/path.h> +#include <ek/debug.h> -char *cu_basename(const char *file) +char *ek_basename(const char *file) { size_t l = strlen(file); size_t n = l - 1; @@ -24,7 +24,7 @@ char *cu_basename(const char *file) return strndup(file + n + 1, l - n); } -char *cu_dirname(const char *file) +char *ek_dirname(const char *file) { size_t l = strlen(file); size_t n = l - 1; @@ -36,7 +36,7 @@ char *cu_dirname(const char *file) return strndup(file, n); } -char *cu_cwdname() +char *ek_cwdname() { size_t size; long path_max = pathconf(".", _PC_PATH_MAX); |
