<!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>rpm: popt/findme.h 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.4.7 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <h1>popt/findme.h File Reference</h1> <p> <a href="findme_8h-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>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="findme_8h.html#096310c1c33fa33a4291df309e1cec64">findProgramPath</a> (const char *argv0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return absolute path to executable by searching PATH. <a href="#096310c1c33fa33a4291df309e1cec64"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <p> Definition in file <a class="el" href="findme_8h-source.html">findme.h</a>.<hr><h2>Function Documentation</h2> <a class="anchor" name="096310c1c33fa33a4291df309e1cec64"></a><!-- doxytag: member="findme.h::findProgramPath" ref="096310c1c33fa33a4291df309e1cec64" args="(const char *argv0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char* findProgramPath </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>argv0</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Return absolute path to executable by searching PATH. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>argv0</em> </td><td>name of executable </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>(malloc'd) absolute path to executable (or NULL) </dd></dl> <p> Definition at line <a class="el" href="findme_8c-source.html#l00012">12</a> of file <a class="el" href="findme_8c-source.html">findme.c</a>. <p> References <a class="el" href="system_8h.html#eb1df3e83fb069eaa2eb66ace3a0ea52">alloca()</a>, <a class="el" href="system_8h.html#bc6595dbf6880c71628fecf0dbb23d66">getenv()</a>, <a class="el" href="system_8h-source.html#l00184">X_OK</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00055">xstrdup()</a>. <p> Referenced by <a class="el" href="popt_8c-source.html#l00379">execCommand()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on 1 Oct 2013 for rpm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address> </body> </html>