cf_path_top_directory¶
Category: path
GitHub: cute_string.h
Returns the top-level directory of a given file or directory. Returns a new string.
| Parameters | Description |
|---|---|
path |
The path string. |
Return Value¶
Returns a new dynamic string. Free with sfree.
Remarks¶
Shortform: sptop_of(path).