Show: Object Pascal C++
Display Preferences

System.SysUtils.StrBufSize

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function StrBufSize(const Str: PAnsiChar): Cardinal;
function StrBufSize(const Str: PWideChar): Cardinal;

C++

extern DELPHI_PACKAGE unsigned __fastcall StrBufSize _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str)/* overload */;

Properties

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

Description

Warning: Ansi version of StrBufSize is deprecated. Please use AnsiStrings unit.

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

Personal tools
Translations