ex16.pp 271 B

1234567891011121314151617
  1. Program Example16;
  2. Uses strings;
  3. { Program to demonstrate the StrNew function. }
  4. Const P1 : PChar = 'This is a PChar string';
  5. var P2 : PChar;
  6. begin
  7. P2:=StrNew (P1);
  8. If P1=P2 then
  9. writeln ('This can''t be happening...')
  10. else
  11. writeln ('P2 : ',P2);
  12. end.