Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 2763

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: getopt_option Struct Reference (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul>
</div>
<h1>getopt_option Struct Reference</h1><!-- doxytag: class="getopt_option" -->Describe the long-named options requested by the application.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="getopt_8h-source.html">csutil/getopt.h</a>&gt;</code>
<p>

<p>
<a href="structgetopt__option-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae7c182735ea02add1c66d554fcf01d2"></a><!-- doxytag: member="getopt_option::flag" ref="ae7c182735ea02add1c66d554fcf01d2" args="" -->
int *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structgetopt__option.html#ae7c182735ea02add1c66d554fcf01d2">flag</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bebd1453e53654a803e2fb46a2970e0"></a><!-- doxytag: member="getopt_option::has_arg" ref="9bebd1453e53654a803e2fb46a2970e0" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structgetopt__option.html#9bebd1453e53654a803e2fb46a2970e0">has_arg</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21232852018133c79b7987b4f5a89bcf"></a><!-- doxytag: member="getopt_option::name" ref="21232852018133c79b7987b4f5a89bcf" args="" -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structgetopt__option.html#21232852018133c79b7987b4f5a89bcf">name</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0315120b2afc2c36980c6df4659571e2"></a><!-- doxytag: member="getopt_option::val" ref="0315120b2afc2c36980c6df4659571e2" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structgetopt__option.html#0315120b2afc2c36980c6df4659571e2">val</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Describe the long-named options requested by the application. 
<p>
The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of `struct option' terminated by an element containing a name which is zero.<p>
The field `has_arg' is: <pre>
   no_argument		(or 0) if the option does not take an argument,
   required_argument	(or 1) if the option requires an argument,
   optional_argument 	(or 2) if the option takes an optional argument.
   </pre><p>
If the field `flag' is not 0, it points to a variable that is set to the value given in the field `val' when the option is found, but left unchanged if the option is not found.<p>
To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero `flag' field, `getopt' returns the contents of the `val' field. 
<p>Definition at line <a class="el" href="getopt_8h-source.html#l00096">96</a> of file <a class="el" href="getopt_8h-source.html">getopt.h</a>.</p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>csutil/<a class="el" href="getopt_8h-source.html">getopt.h</a></ul>
<hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>