Given a string \"filename.conf\", how to I verify the extension part?
\"filename.conf\"
I need a cross platform solution.
Try to use strstr
char* lastSlash; lastSlash = strstr(filename, ".");