cf_path_pop_n¶
Category: path
GitHub: cute_string.h
Removes the rightmost n files or directories from the path. Returns a new string.
| Parameters | Description |
|---|---|
path |
The path string. |
n |
The number of path components to pop. |
Return Value¶
Returns a new dynamic string. Free with sfree.
Remarks¶
Shortform: sppopn(path, n).