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:

  1. split string defining separator space
  2. take last position of split , take fileextension or period

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -