diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-23 16:14:51 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-23 16:14:51 +0200 |
| commit | 5b038666c3e911ffeb78a4d656044e5bd076705b (patch) | |
| tree | 9b09b4f27c39ef6a0139a5eb9bfa5e98a250086c /src/path.c | |
| parent | 70615379062cdd2e016f5095dfafd23a6dca148c (diff) | |
| download | ek-5b038666c3e911ffeb78a4d656044e5bd076705b.tar.gz ek-5b038666c3e911ffeb78a4d656044e5bd076705b.zip | |
integrate parser work
Diffstat (limited to 'src/path.c')
| -rw-r--r-- | src/path.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,10 +4,10 @@ #include <stdlib.h> #include <errno.h> -#include <ct/path.h> -#include <ct/debug.h> +#include <cu/path.h> +#include <cu/debug.h> -char *ct_basename(const char *file) +char *cu_basename(const char *file) { size_t l = strlen(file); size_t n = l - 1; @@ -22,7 +22,7 @@ char *ct_basename(const char *file) return strndup(file + n + 1, l - n); } -char *ct_dirname(const char *file) +char *cu_dirname(const char *file) { size_t l = strlen(file); size_t n = l - 1; @@ -34,7 +34,7 @@ char *ct_dirname(const char *file) return strndup(file, n); } -char *ct_cwdname() +char *cu_cwdname() { size_t size; long path_max = pathconf(".", _PC_PATH_MAX); |
