mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 10:19:27 +02:00
15 lines
270 B
ObjectPascal
15 lines
270 B
ObjectPascal
Program Example6;
|
|
|
|
Uses strings;
|
|
|
|
{ Program to demonstrate the StrEnd function. }
|
|
|
|
Const P : PChar = 'This is a PCHAR string.';
|
|
|
|
begin
|
|
If Longint(StrEnd(P))-Longint(P)<>StrLen(P) then
|
|
Writeln('Something is wrong here !')
|
|
else
|
|
Writeln ('All is well..');
|
|
end.
|