ex13.pp 300 B

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