Hello All,

Given I hold the user file name in a char *fileName.
I need to check whether the file is of extension xyz (i.e. name.xyz).
I determine the lenght of the fileName (strlen(fileName)). 
How can i then check if the last 4 characters are .xyz in a neat
way. Cause if they're not i will return a warning message.

Thank you.

- Ibrahim Haddad

Reply via email to