RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.WStrBufSize Function

Returns the maximum number of characters that can be stored in a PWideChar allocated by WStrAlloc.

Pascal
function WStrBufSize(const Str: PWideChar): Cardinal;
C++
unsigned WStrBufSize(const PWideChar Str);

WStrBufSize returns the number of characters in Str, including the byte for the termination character.

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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!