summaryrefslogtreecommitdiff
path: root/fpcdocs/olinuxex/ex12.pp
blob: 1741afd9e10af5dc0deb121543ac639f1437981f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Program Example12;

{ Program to demonstrate the Execlp function. }

Uses oldlinux, strings;

begin
  { Execute 'ls -l', with current environment. }
  { 'ls' is looked for in PATH environment variable.}
  { envp is defined in the system unit.}
  Execlp ('ls -l',envp);
end.