Given a string \"filename.conf\", how to I verify the extension part?
\"filename.conf\"
I need a cross platform solution.
Actually, the easiest way is
char* ext; ext = strrchr(filename,'.')
One thing to remember: if '.' doesn't exist in filename, ext will be NULL.
'.'
NULL