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

16 lines
312 B
ObjectPascal

Program Example51;
{ Program to demonstrate the StringToPPChar function. }
Uses oldlinux;
var P : PPChar;
S : String;
begin
S:='/bin/ls -l -F';
P:=StringToPPChar(S);
Writeln ('Name : ',p^); inc(longint(p),4);
writeln ('Option 1 : ',p^); inc(longint(p),4);
writeln ('Option 2 : ',p^);
end.