ex61.pp 343 B

12345678910111213141516171819202122
  1. Program ex61;
  2. { Example program to demonstrate the CreateShellArgV function }
  3. uses linux;
  4. Var
  5. S: String;
  6. PP : PPchar;
  7. I : longint;
  8. begin
  9. S:='script -a -b -c -d -e fghijk';
  10. PP:=CreateShellArgV(S);
  11. I:=0;
  12. If PP<>Nil then
  13. While PP[i]<>Nil do
  14. begin
  15. Writeln ('Got : "',PP[i],'"');
  16. Inc(i);
  17. end;
  18. end.