Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 67e32647b06c0323bf90c6b54a6438d1 > files > 81

rpm-apidocs-4.4.2.3-34.el5.x86_64.rpm

<!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.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.4.7 -->
<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="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><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="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>popt/findme.c File Reference</h1><code>#include &quot;system.h&quot;</code><br>
<code>#include &quot;<a class="el" href="findme_8h-source.html">findme.h</a>&quot;</code><br>

<p>
<a href="findme_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>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="findme_8c.html#096310c1c33fa33a4291df309e1cec64">findProgramPath</a> (const char *argv0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</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_8c-source.html">findme.c</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="096310c1c33fa33a4291df309e1cec64"></a><!-- doxytag: member="findme.c::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 *&nbsp;</td>
          <td class="paramname"> <em>argv0</em>          </td>
          <td>&nbsp;)&nbsp;</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>&nbsp;</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&nbsp;
<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>