Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

findme.c File Reference

#include "system.h"
#include "findme.h"

Go to the source code of this file.

Functions

const char * findProgramPath (const char *argv0)
 Return absolute path to executable by searching PATH.


Detailed Description

Definition in file findme.c.


Function Documentation

const char* findProgramPath const char *  argv0  ) 
 

Return absolute path to executable by searching PATH.

Parameters:
argv0 name of executable
Returns:
(malloc'd) absolute path to executable (or NULL)

Definition at line 12 of file findme.c.

References alloca(), getenv(), X_OK, and xstrdup().

Referenced by execCommand().


Generated on Mon Oct 3 21:17:41 2011 for rpm by  doxygen 1.3.9.1