fpc/docs/olinuxex/ex61.pp
2005-02-14 17:13:06 +00:00

22 lines
342 B
ObjectPascal

Program ex61;
{ Example program to demonstrate the CreateShellArgV function }
uses oldlinux;
Var
S: String;
PP : PPchar;
I : longint;
begin
S:='script -a -b -c -d -e fghijk';
PP:=CreateShellArgV(S);
I:=0;
If PP<>Nil then
While PP[i]<>Nil do
begin
Writeln ('Got : "',PP[i],'"');
Inc(i);
end;
end.