System.AnsiStrings.StrLen

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrLen(const Str: PAnsiChar): Cardinal;

C++

extern DELPHI_PACKAGE unsigned __fastcall StrLen(const char * Str)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Returns the number of characters in a string, excluding the null terminator.

StrLen returns the number of characters in Str, not counting the null terminator.

See Also

Code Examples