Skip to content

cf_path_pop_n

Category: path
GitHub: cute_string.h


Removes the rightmost n files or directories from the path. Returns a new string.

#define cf_path_pop_n(path, n) sppopn(path, n)
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).

cf_path_pop
cf_path_directory_of