fpc/docs/stringex/ex15.pp
1998-03-25 11:26:49 +00:00

12 lines
238 B
ObjectPascal

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