<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 26, 2014 at 12:04 PM, Joshua Robinson <span dir="ltr"><<a href="mailto:shooki.robinson@gmail.com" target="_blank">shooki.robinson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div><div dir="ltr">Greetings OcLugers,<br>
<span style><span></span></span><br></div><div>In C need to pass on the command line: <br><br>MyProjName -s user@host and -u user_name <br>
<br></div><div>How do I do that (many year since I did C), little code would be nice ? </div></div></div></blockquote><div><br></div><div>Here's an example program that does a little argument parsing in C:</div><div>
<a href="http://stromberg.dnsalias.org/~strombrg/IQS.html">http://stromberg.dnsalias.org/~strombrg/IQS.html</a></div><div><a href="http://stromberg.dnsalias.org/svn/IQS/trunk/">http://stromberg.dnsalias.org/svn/IQS/trunk/</a></div>
<div><a href="http://stromberg.dnsalias.org/svn/IQS/trunk/IQS.c">http://stromberg.dnsalias.org/svn/IQS/trunk/IQS.c</a><br></div><div><br></div><div>Note that it runs on a handful of Unixes, but not Linux.</div><div><br></div>
</div></div></div>