<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libnfc: nfc-utils.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libnfc <span id="projectnumber">1.4.2</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_e1066e20c97c3d492c10ec6dd00ee654.html">examples</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>nfc-utils.h File Reference</h1> </div> </div> <div class="contents"> <p>Provide some examples shared functions like print, parity calculation, options parsing. <a href="#_details">More...</a></p> <div class="textblock"><code>#include <stdlib.h></code><br/> <code>#include <string.h></code><br/> </div> <p><a href="nfc-utils_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structnfc__device__desc__t.html">nfc_device_desc_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="nfc-utils_8h.html#ae72923a50a664b90f9a2fa79e014af5c">parse_args</a> (int argc, const char *argv[], size_t *szFound, bool *verbose)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Tries to parse arguments to find device descriptions. <a href="#ae72923a50a664b90f9a2fa79e014af5c"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Provide some examples shared functions like print, parity calculation, options parsing. </p> <p>Definition in file <a class="el" href="nfc-utils_8h_source.html">nfc-utils.h</a>.</p> </div><hr/><h2>Function Documentation</h2> <a class="anchor" id="ae72923a50a664b90f9a2fa79e014af5c"></a><!-- doxytag: member="nfc-utils.h::parse_args" ref="ae72923a50a664b90f9a2fa79e014af5c" args="(int argc, const char *argv[], size_t *szFound, bool *verbose)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structnfc__device__desc__t.html">nfc_device_desc_t</a>* parse_args </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>argv</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t * </td> <td class="paramname"><em>szFound</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool * </td> <td class="paramname"><em>verbose</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Tries to parse arguments to find device descriptions. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>Returns the list of found device descriptions. </dd></dl> <p>Definition at line <a class="el" href="nfc-utils_8c_source.html#l00628">628</a> of file <a class="el" href="nfc-utils_8c_source.html">nfc-utils.c</a>.</p> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Wed Feb 23 2011 for libnfc by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>