next up previous contents index
Next: StrPCopy Up: Functions and procedures. Previous: Functions and procedures.

StrLen

   

Declaration:

Function StrLen (p : PChar) : Longint;

Description:

Returns the length of the null-terminated string P.

Errors:

None.

See also:

Length ()

Example
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.



Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998