virtual P6R::P6ERR P6R::p6ISafeString::strlen ( const P6R::P6CHAR *  pStr,
P6R::P6SIZE  cchMax,
P6R::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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.