2.6.2.4 Queries — Zix 0.6.2 documentation

# 2.6.2.4 Queries

bool zix_path_has_root_path(const char *path)

  Return true if `path` has a root path like “/” or “C:".

bool zix_path_has_root_name(const char *path)

  Return true if `path` has a root name like “C:”.

bool zix_path_has_root_directory(const char *path)

  Return true if `path` has a root directory like “/” or “".

bool zix_path_has_relative_path(const char *path)

  Return true if `path` has a relative path “dir/file.txt”.

bool zix_path_has_parent_path(const char *path)

  Return true if `path` has a parent path like “dir/”.

bool zix_path_has_filename(const char *path)

  Return true if `path` has a filename like “file.txt”.

bool zix_path_has_stem(const char *path)

  Return true if `path` has a stem like “file”.

bool zix_path_has_extension(const char *path)

  Return true if `path` has an extension like “.txt”.

bool zix_path_is_absolute(const char *path)

  Return true if `path` is an absolute path.

bool zix_path_is_relative(const char *path)

  Return true if `path` is a relative path.