Skip to content

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.

#define cf_path_top_directory(path) sptop_of(path)
Parameters Description
path The path string.

Return Value

Returns a new dynamic string. Free with sfree.

Remarks

Shortform: sptop_of(path).

cf_path_directory_of
cf_path_get_filename
cf_path_pop