[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Return a pointer to the end of a null-terminated string
Source position: syspchh.inc line 22
function strend( |
p: pchar |
):pchar; |
p: pwidechar |
):pwidechar; |
Returns a pointer to the end of P. (i.e. to the terminating null-character.
None.
|
Length of a null-terminated string. |
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.