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

  1. Program Example13;
  2.  
  3. Uses strings;
  4.  
  5. { Program to demonstrate the StrScan and StrRScan functions. }
  6.  
  7. Const P : PChar = 'This is a PCHAR string.'; 
  8.       S : Char = 's' ;
  9.  
  10. begin
  11.   Writeln ('P, starting from first ''s'' : ',StrScan(P,s));
  12.   Writeln ('P, starting from last ''s'' : ',StrRScan(P,s));
  13. end.
  14.