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

  1. Program Example6;
  2.  
  3. Uses strings;
  4.  
  5. { Program to demonstrate the StrEnd function. }
  6.  
  7. Const P : PChar = 'This is a PCHAR string.';
  8.  
  9. begin
  10.   If Longint(StrEnd(P))-Longint(P)<>StrLen(P) then
  11.     Writeln('Something is wrong here !')
  12.   else
  13.     Writeln ('All is well..');
  14. end.
  15.