c - Finding unknown word in string -
i'm building simple menu , came doubt: user gonna have defined commands, example, entry "compact image < filename >.jpeg". how can filename , extension middle of string?
if actual example of string need file name can:
- split string defining separator space
- take last position of split , take fileextension or period
Comments
Post a Comment