[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'oldlinux' (#rtl) |
Search for file in search path.
Source position: oldlinux.pp line 1581
function FSearch( |
const path: PathStr; |
dirlist: String |
):PathStr; |
FSearch searches in DirList, a colon separated list of directories, for a file named Path. It then returns a path to the found file.
An empty string if no such file was found.
|
Return basename of a file |
|
|
Extract directory part from filename |
|
|
Expand filename to fully qualified path |
|
|
Check whether filename matches wildcard specification |
Program Example46; { Program to demonstrate the FSearch function. } Uses oldlinux,strings; begin Writeln ('ls is in : ',FSearch ('ls',strpas(Getenv('PATH')))); end.
No notes exist for this page yet.