std1.0.0-beta-7 SafeC docs

std :: path

Function std::path_ext

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

struct String path_ext(const &char p)

The last component's extension, without the dot: "a/b.tar.gz" -> "gz", "b" -> "", ".bashrc" -> "" (a leading dot names a file, not an extension).