Category : C++ Source Code
Archive   : EBKSRC.ZIP
Filename : CMDLN.HPP
cmdln.hpp
7-30-91
Command line option parser
Copyright 1991
John W. Small
All rights reserved
Use freely but acknowledge authorship and copyright.
CIS: 73757,2233
PSW / Power SoftWare
P.O. Box 10072
McLean, Virginia 22102 8072
(703) 759-3838
*/
#ifndef CMDLN_HPP
#define CMDLN_HPP
class CmdLn {
char **argv, *options, *opt;
int argc, optEnd;
int argi;
public:
char optCh, optNot, *optArg;
void CmdLnReset(int argc, char *argv[],
char *options);
CmdLn(int argc, char *argv[], char *options)
{ CmdLnReset(argc,argv,options); }
int Argi() { return argi; }
int getOption(void);
void nextCluster(void);
void lookForMoreOptions(void);
};
#endif
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/