If you only want to have a "few commands" it's probably easier to jsut parse it yourself. The command line is already "parsed" so-to-speak at the white space and you access it from the the 2-D char array argv[][] if you want to further parse the contents of argv, strtok is probably the easiest way.
Main Topics
Browse All Topics





by: aboywongPosted on 2002-12-24 at 08:55:03ID: 7629153
You can try GNU getopt...
there are versions for c, c++ on linux/Unix
and ports for Win32, Java...etc
just go to www.google.com and search for "gnu getopt" or "win32 getopt"....