Function FSearch (Path : pathstr;DirList : string) : Pathstr;
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.
Program Example46;
{ Program to demonstrate the FSearch function. }
Uses linux,strings;
begin
Writeln ('ls is in : ',FSearch ('ls',strpas(Getenv('PATH'))));
end.