virtual P6R::P6ERR P6R::p6ISafeString::strchr ( const P6R::P6CHAR *  pStr,
P6R::P6INT16  c,
P6R::P6SIZE  cchMax,
P6R::P6CHAR **  ppRetPtr 
) [pure virtual]

Finds the first occurance of the character c in pStr.

The scan will continue until c is found, NULL is found, or cchMax characters have been scanned.

Parameters:
pStr [in] A pointer to the NULL terminated string to search.
c [in] The character to search for.
cchMax [in] The maximum number of characters to search. If cchMax is set to zero, the internal default of P6SAFESTR_MAX_CCH charaters will be used.
ppRetPtr [out] The address of a pointer in which will be placed a pointer to the first occurence of c.
Returns:
SuccessP6R::eOk 
FailureP6R::eInvalidArgs or ppRetPtr is NULL
P6R::eNotFoundc was not found in pStr
P6R::eTooBigcchMax characters was exceeded in the comparison. The comparison was aborted.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.