Skip to content

cf_path_ext_equ

Category: path
GitHub: cute_string.h


Returns true if the file's extension matches, false otherwise.

#define cf_path_ext_equ(path, ext) spext_equ(path, ext)
Parameters Description
path The path string.
ext The file extension to compare (e.g. ".png").

Return Value

Returns true if the extensions match.

Remarks

Shortform: spext_equ(path, ext).

cf_path_get_ext
cf_path_get_filename