Iam writing a command line program. My commnad looks like below
c:\commandname -f "c:\temp.txt" systemname:port GetStatus
The command is exactly same as shown above
I am able to get the whole command inside a string say dummy. Now I want is when a -f is encountered in the command then take
c:\temp.txt in string test1.
systemname:port in string test2.
GetStatus in string test3.
As Iam new to C language , iam not so versed in string manipulation function. So please provide me code for checking the above. and getting the substrings in the respetive strings.
Early responses are greatly appreciated. Code responses too.