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

13 lines
195 B
ObjectPascal

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