ex7.pp 270 B

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