dld_find_executable(3)

NAME
dld_find_executable - locate executable file

SYNTAX
char *dld_find_executable (command)

char *command;

DESCRIPTION
dld_find_executable returns the absolute path name of the file that would be executed if command were given as a UNIX command. It looks up the environment variable PATH and locate the file in the same way as the which(1) command does.

This function may be used by a process to locate its executable file by expanding the zeroth argument passed from the command line.

DIAGNOSTICS
A zero will be returned if command is not found in any of the directories listed in PATH.

SEE ALSO
which(1), sh(1), csh(1)

AUTHOR
Wilson Ho - Division of Computer Science, EECS Department, University of California at Davis.