System.AnsiStrings.StrBufSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrBufSize(const Str: PAnsiChar): Cardinal;

C++

extern DELPHI_PACKAGE unsigned __fastcall StrBufSize(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 maximum number of characters that can be stored in a buffer allocated by StrAlloc.

StrBufSize returns the number of characters in Str, including one for the termination character.

Note: If Str does not point to a string buffer allocated by StrAlloc or StrNew, no error message is returned, and the result is unpredictable.

See Also