3 search \- search for named executable
10 char* searchpath(char *name)
13 searches for the executable
21 The environment variable
23 is treated as a colon-separated list of directories in which to look for
25 An empty string in the list is treated as the current directory.
26 If an executable named
28 is found in one of the directories,
30 returns a pointer to a malloced string containing a path
31 .IB \fR( dir / name \fR,
46 then the search path is ignored.
49 exists and is an executable, then
51 returns a malloced string containing name.
53 The returned buffer should be freed when no longer needed.
61 .B \*9/src/lib9/searchpath.c