ex15.pp 238 B

1234567891011
  1. Program Example15;
  2. Uses strings;
  3. { Program to demonstrate the StrPos function. }
  4. Const P : PChar = 'This is a PChar string.';
  5. S : Pchar = 'is';
  6. begin
  7. Writeln ('Position of ''is'' in P : ',longint(StrPos(P,S))-Longint(P));
  8. end.