fpc/docs/linuxex/ex47.pp
1998-03-25 11:26:49 +00:00

13 lines
196 B
ObjectPascal

Program Example47;
{ Program to demonstrate the DirName function. }
Uses linux;
Var S : String;
begin
S:=FExpand(Paramstr(0));
Writeln ('This program is in directory : ',Dirname(S));
end.