sppopn¶
Category: path
GitHub: cute_file_system.h
Removes the rightmost n files or directories from the path.
Parameters | Description |
---|---|
s | The path string. |
n | The number of files to pop from the directory path. |
Return Value¶
If the string is not a dynamic string from CF's string API, a new string is returned. Otherwise the string is modified in-place. You must call sfree if a new dynamic string is returned, when done.
Remarks¶
sp
stands for "sting path".
Related Pages¶
spfname
spfname_no_ext
spext
spext_equ
sppop
spnorm
spcompact
spdir_of
sptop_of