| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Length of a null-terminated string.
Source position: syspchh.inc line 18
function strlen(  | 
p: PChar  | 
):SizeInt; overload;  | 
p: PWideChar  | 
):SizeInt; overload;  | 
Returns the length of the null-terminated string P. If P equals Nil then zero (0) is returned.
None.
  | 
Allocate room for new null-terminated string.  | 
Program Example1; Uses strings; { Program to demonstrate the StrLen function. } Const P : PChar = 'This is a constant pchar string'; begin Writeln ('P : ',p); Writeln ('length(P) : ',StrLen(P)); end.