home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / stringex / ex16.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  271 b   |  18 lines

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