From 6aeaa171dc1ca43392f53cbd02097f76e1b1c5a0 Mon Sep 17 00:00:00 2001 From: David Moc Date: Sun, 31 May 2026 03:47:04 +0200 Subject: Hardened API, tetris, MD-View --- include/path.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/path.h (limited to 'include/path.h') diff --git a/include/path.h b/include/path.h new file mode 100644 index 0000000..e76a654 --- /dev/null +++ b/include/path.h @@ -0,0 +1,22 @@ +#ifndef ECEX_PATH_H +#define ECEX_PATH_H + +#include + +int ecex_path_copy(char *out, size_t out_size, const char *text); +char *ecex_path_expand_user(const char *path); +char *ecex_path_join(const char *dir, const char *name); +char *ecex_path_dirname(const char *path); +char *ecex_path_basename_dup(const char *path); +char *ecex_path_normalize(const char *path); +int ecex_path_is_dir(const char *path); +int ecex_path_is_file(const char *path); +int ecex_path_exists(const char *path); +long long ecex_path_file_size(const char *path); +int ecex_path_is_image(const char *path); +int ecex_path_is_previewable_image(const char *path); +int ecex_path_is_video(const char *path); +int ecex_path_is_media(const char *path); +int ecex_path_cwd(char *out, size_t out_size); + +#endif -- cgit v1.2.3