doc/doxygen/html/TestMasterMicroMod_2getopt_8c.html
author greg
Fri, 06 Jul 2007 10:35:59 +0200
changeset 238 be485a93e3f7
parent 215 f49e5a6b7804
child 240 34654679f262
permissions -rw-r--r--
add profile callback
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CanFestival: examples/TestMasterMicroMod/getopt.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_fc8d77725c328f9de5a130dceab5a508.html">examples</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_a7260e1e7d8c32b9634bb52472535efa.html">TestMasterMicroMod</a></div>
<h1>getopt.c File Reference</h1><code>#include &lt;stdio.h&gt;</code><br>
<code>#include &quot;<a class="el" href="TestMasterMicroMod_2getopt_8h-source.html">getopt.h</a>&quot;</code><br>
<code>#include &lt;strings.h&gt;</code><br>

<p>
Include dependency graph for getopt.c:<p><center><img src="TestMasterMicroMod_2getopt_8c__incl.png" border="0" usemap="#examples/TestMasterMicroMod/getopt.c_map" alt=""></center>
<map name="examples/TestMasterMicroMod/getopt.c_map">
<area href="TestMasterMicroMod_2getopt_8h.html" shape="rect" coords="347,54,424,78" alt="">
</map>

<p>
<a href="TestMasterMicroMod_2getopt_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#5325c715897861c318d3ae312ac452cc">GETOPT_INTERFACE_VERSION</a>&nbsp;&nbsp;&nbsp;2</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#86a239addea586602343007a370bf8ad">_</a>(msgid)&nbsp;&nbsp;&nbsp;(msgid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#6e06e56c5fa96faaf47f3b231e015e35">SWAP_FLAGS</a>(ch1, ch2)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#71ceb8911d64b39b402041ba5ea8453c">NONOPTION_P</a>&nbsp;&nbsp;&nbsp;(argv[<a class="el" href="TestMasterMicroMod_2getopt_8h.html#d5e1c16213bbee2d5e8cc363309f418c">optind</a>][0] != '-' || argv[<a class="el" href="TestMasterMicroMod_2getopt_8h.html#d5e1c16213bbee2d5e8cc363309f418c">optind</a>][1] == '\0')</td></tr>

<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <a class="el" href="TestMasterMicroMod_2getopt_8c.html#df764cbdea00d65edcd07bb9953ad2b70e73a0691c110b1442d8364d1d12eccc">REQUIRE_ORDER</a>, 
<a class="el" href="TestMasterMicroMod_2getopt_8c.html#df764cbdea00d65edcd07bb9953ad2b7cfdde4b47c27f4efbd832e1ac7f8a8fc">PERMUTE</a>, 
<a class="el" href="TestMasterMicroMod_2getopt_8c.html#df764cbdea00d65edcd07bb9953ad2b73c56550bfafe809d9214b863b69c31c5">RETURN_IN_ORDER</a>
 }</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#ee28fd8a0e40b6d958f7d20348e45368">getenv</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#0df92a0ae8fe1fd43268c738f548674f">_getopt_internal</a> (int argc, char *const *argv, const char *optstring, const struct <a class="el" href="structoption.html">option</a> *longopts, int *longind, int long_only)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#1b2ada39ab92162c6ec9c67c8093fa2e">getopt</a> (int argc, char *const *argv, const char *optstring)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#db50a0eab9fed92fc3bfc7dfa4f2c410">optarg</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#d5e1c16213bbee2d5e8cc363309f418c">optind</a> = 1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#28286be757527aeb1db951b5da9aeec1">__getopt_initialized</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#e30f05ee1e2e5652f174a35c7875d25e">opterr</a> = 1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_2getopt_8c.html#475b8db98445da73e5f62a1ef6324b95">optopt</a> = '?'</td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="86a239addea586602343007a370bf8ad"></a><!-- doxytag: member="getopt.c::_" ref="86a239addea586602343007a370bf8ad" args="(msgid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _          </td>
          <td>(</td>
          <td class="paramtype">msgid&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;(msgid)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00089">89</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<a class="anchor" name="5325c715897861c318d3ae312ac452cc"></a><!-- doxytag: member="getopt.c::GETOPT_INTERFACE_VERSION" ref="5325c715897861c318d3ae312ac452cc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GETOPT_INTERFACE_VERSION&nbsp;&nbsp;&nbsp;2          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00054">54</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<a class="anchor" name="71ceb8911d64b39b402041ba5ea8453c"></a><!-- doxytag: member="getopt.c::NONOPTION_P" ref="71ceb8911d64b39b402041ba5ea8453c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NONOPTION_P&nbsp;&nbsp;&nbsp;(argv[<a class="el" href="TestMasterMicroMod_2getopt_8h.html#d5e1c16213bbee2d5e8cc363309f418c">optind</a>][0] != '-' || argv[<a class="el" href="TestMasterMicroMod_2getopt_8h.html#d5e1c16213bbee2d5e8cc363309f418c">optind</a>][1] == '\0')          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="6e06e56c5fa96faaf47f3b231e015e35"></a><!-- doxytag: member="getopt.c::SWAP_FLAGS" ref="6e06e56c5fa96faaf47f3b231e015e35" args="(ch1, ch2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SWAP_FLAGS          </td>
          <td>(</td>
          <td class="paramtype">ch1,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ch2&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00287">287</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="df764cbdea00d65edcd07bb9953ad2b7"></a><!-- doxytag: member="getopt.c::@1" ref="df764cbdea00d65edcd07bb9953ad2b7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="df764cbdea00d65edcd07bb9953ad2b70e73a0691c110b1442d8364d1d12eccc"></a><!-- doxytag: member="REQUIRE_ORDER" ref="df764cbdea00d65edcd07bb9953ad2b70e73a0691c110b1442d8364d1d12eccc" args="" -->REQUIRE_ORDER</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="df764cbdea00d65edcd07bb9953ad2b7cfdde4b47c27f4efbd832e1ac7f8a8fc"></a><!-- doxytag: member="PERMUTE" ref="df764cbdea00d65edcd07bb9953ad2b7cfdde4b47c27f4efbd832e1ac7f8a8fc" args="" -->PERMUTE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="df764cbdea00d65edcd07bb9953ad2b73c56550bfafe809d9214b863b69c31c5"></a><!-- doxytag: member="RETURN_IN_ORDER" ref="df764cbdea00d65edcd07bb9953ad2b73c56550bfafe809d9214b863b69c31c5" args="" -->RETURN_IN_ORDER</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00190">190</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="0df92a0ae8fe1fd43268c738f548674f"></a><!-- doxytag: member="getopt.c::_getopt_internal" ref="0df92a0ae8fe1fd43268c738f548674f" args="(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int _getopt_internal           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *const *&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>optstring</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct <a class="el" href="structoption.html">option</a> *&nbsp;</td>
          <td class="paramname"> <em>longopts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>longind</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>long_only</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00511">511</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
<p>
References <a class="el" href="TestMasterSlave_2getopt_8c-source.html#l00139">__getopt_initialized</a>, <a class="el" href="TestMasterSlave_2getopt_8h-source.html#l00108">option::name</a>, <a class="el" href="TestMasterSlave_2getopt_8c.html#71ceb8911d64b39b402041ba5ea8453c">NONOPTION_P</a>, <a class="el" href="TestMasterSlave_2getopt_8c-source.html#l00118">optarg</a>, <a class="el" href="TestMasterSlave_2getopt_8c-source.html#l00153">opterr</a>, <a class="el" href="TestMasterSlave_2getopt_8c-source.html#l00133">optind</a>, <a class="el" href="TestMasterSlave_2getopt_8c.html#06fc87d81c62e9abb8790b6e5713c55bcfdde4b47c27f4efbd832e1ac7f8a8fc">PERMUTE</a>, and <a class="el" href="TestMasterSlave_2getopt_8c.html#06fc87d81c62e9abb8790b6e5713c55b0e73a0691c110b1442d8364d1d12eccc">REQUIRE_ORDER</a>.
</div>
</div><p>
<a class="anchor" name="ee28fd8a0e40b6d958f7d20348e45368"></a><!-- doxytag: member="getopt.c::getenv" ref="ee28fd8a0e40b6d958f7d20348e45368" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* getenv           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="1b2ada39ab92162c6ec9c67c8093fa2e"></a><!-- doxytag: member="getopt.c::getopt" ref="1b2ada39ab92162c6ec9c67c8093fa2e" args="(int argc, char *const *argv, const char *optstring)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getopt           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *const *&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>optstring</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l01171">1171</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
<p>
References <a class="el" href="TestMasterSlave_2getopt_8c-source.html#l00511">_getopt_internal()</a>.
<p>
Here is the call graph for this function:<p><center><img src="TestMasterMicroMod_2getopt_8c_1b2ada39ab92162c6ec9c67c8093fa2e_cgraph.png" border="0" usemap="#TestMasterMicroMod_2getopt_8c_1b2ada39ab92162c6ec9c67c8093fa2e_cgraph_map" alt=""></center>
<map name="TestMasterMicroMod_2getopt_8c_1b2ada39ab92162c6ec9c67c8093fa2e_cgraph_map">
<area href="TestMasterSlave_2getopt_8c.html#0df92a0ae8fe1fd43268c738f548674f" shape="rect" coords="120,6,254,30" alt="">
</map>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="28286be757527aeb1db951b5da9aeec1"></a><!-- doxytag: member="getopt.c::__getopt_initialized" ref="28286be757527aeb1db951b5da9aeec1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="TestMasterMicroMod_2getopt_8c.html#28286be757527aeb1db951b5da9aeec1">__getopt_initialized</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00139">139</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<a class="anchor" name="db50a0eab9fed92fc3bfc7dfa4f2c410"></a><!-- doxytag: member="getopt.c::optarg" ref="db50a0eab9fed92fc3bfc7dfa4f2c410" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="TestMasterMicroMod_2getopt_8h.html#db50a0eab9fed92fc3bfc7dfa4f2c410">optarg</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00118">118</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<a class="anchor" name="e30f05ee1e2e5652f174a35c7875d25e"></a><!-- doxytag: member="getopt.c::opterr" ref="e30f05ee1e2e5652f174a35c7875d25e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="TestMasterMicroMod_2getopt_8h.html#e30f05ee1e2e5652f174a35c7875d25e">opterr</a> = 1          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00153">153</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<a class="anchor" name="d5e1c16213bbee2d5e8cc363309f418c"></a><!-- doxytag: member="getopt.c::optind" ref="d5e1c16213bbee2d5e8cc363309f418c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="TestMasterMicroMod_2getopt_8h.html#d5e1c16213bbee2d5e8cc363309f418c">optind</a> = 1          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00133">133</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<a class="anchor" name="475b8db98445da73e5f62a1ef6324b95"></a><!-- doxytag: member="getopt.c::optopt" ref="475b8db98445da73e5f62a1ef6324b95" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="TestMasterMicroMod_2getopt_8h.html#475b8db98445da73e5f62a1ef6324b95">optopt</a> = '?'          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html#l00159">159</a> of file <a class="el" href="TestMasterMicroMod_2getopt_8c-source.html">getopt.c</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:51:49 2007 for CanFestival by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>