help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Procedures and functions] Reference for unit 'strings' (#rtl)

strlen

Length of a null-terminated string.

Declaration

Source position: strings.pp line 21

function strlen(

  p: pchar

):sizeint;

Description

Returns the length of the null-terminated string P.

Errors

None.

See also

StrNew

  

Allocate room for new null-terminated string.

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505