Category : C Source Code
Archive   : OPTIONS.ZIP
Filename : READ.ME
Output of file : READ.ME contained in archive : OPTIONS.ZIP
This means things like "foo -r bar" or "zap -xy afile".
The offered version only handles single character option specs.
It is easy to modify the table and procedure to handle
strings of arbitrary length (using strncmp). This version
works ok and uses less space.
Provision is made for auto invocation of a usage()
routine if no args are supplied. An example is included
in optdemo.c.
Options may be flagged as taking an argument or not. If
an arg is taken, this is passed to the appropriate function.
Otherwise a null string is passed.
Any non-option things left on the command line are left
there on the return to the caller. argc and argv are
adjusted as if there were never any options on the line.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/