ex48.pp 198 B

123456789101112
  1. Program Example48;
  2. { Program to demonstrate the BaseName function. }
  3. Uses oldlinux;
  4. Var S : String;
  5. begin
  6. S:=FExpand(Paramstr(0));
  7. Writeln ('This program is called : ',Basename(S,''));
  8. end.