Bill Cunningham wrote: > Does anyone know what the looping constructs are that are used in > command line interfaces that use a switch such as -d or -a in their argv? > Any argv value seems to work. argv[1], argv[2] and so on. I hope I am making > myself clear. > > Bill
The POSIX approach is to use getopt(). But it is fairly easy to roll your own. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
