[OCLUG-devel] C argum

Dan Stromberg strombrg at gmail.com
Sat Apr 26 12:12:45 PDT 2014


On Sat, Apr 26, 2014 at 12:04 PM, Joshua Robinson <shooki.robinson at gmail.com
> wrote:

>
> Greetings OcLugers,
>
> In C need to pass on the command line:
>
> MyProjName  -s user at host and -u user_name
>
> How do I do that (many year since I did C), little code would be nice ?
>

Here's an example program that does a little argument parsing in C:
http://stromberg.dnsalias.org/~strombrg/IQS.html
http://stromberg.dnsalias.org/svn/IQS/trunk/
http://stromberg.dnsalias.org/svn/IQS/trunk/IQS.c

Note that it runs on a handful of Unixes, but not Linux.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.oclug.org/pipermail/oclug-devel/attachments/20140426/278a6d4a/attachment.html 


More information about the OCLUG-devel mailing list