Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::strlen ( const P6CHAR pStr,
P6SIZE  cchMax,
P6SIZE pcSize 
)
pure virtual

Get the length of a NULL terminated string in bytes excluding the zero terminator and not affected by locale.

This method interprets pStr as single-byte characters even if the string contains multi-byte characters. Therefore, its return value will always be the number of bytes the string occupies.

Parameters
pStr[ in ] A pointer to the zero terminated string whose length is being requested.
cchMax[ in ] The size in characters of the string buffer pointed to by pStr.
pcSize[ out ] The address of a P6R::P6SIZE in which will be placed the legnth of pStr on success.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpStr or pcSize is NULL or cchMax is zero
P6R::eTooBigpStr is longer than cchMax characters.