std1.0.0-beta-7 SafeC docs

std :: path

Function std::path_dirname

#include <std/path.h> source ยท definition

struct String path_dirname(const &char p)

Everything before the last component: "a/b/c" -> "a/b", "c" -> "", "/c" -> "/", "a/b/" -> "a". Trailing separators are ignored.