fpc/docs/refex/ex59.pp
1998-03-25 11:26:49 +00:00

14 lines
212 B
ObjectPascal

Program Example59;
{ Program to demonstrate the Ptr function. }
Var P : ^String;
S : String;
begin
S:='Hello, World !';
P:=Ptr(Seg(S),Longint(Ofs(S)));
{P now points to S !}
Writeln (P^);
end.