fpc/docs/olinuxex/ex48.pp
2004-10-16 13:14:03 +00:00

13 lines
198 B
ObjectPascal

Program Example48;
{ Program to demonstrate the BaseName function. }
Uses oldlinux;
Var S : String;
begin
S:=FExpand(Paramstr(0));
Writeln ('This program is called : ',Basename(S,''));
end.