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
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | s or ppRetPtr is NULL |
P6R::eNotFound | c was not found in pStr |
P6R::eTooBig | cchMax characters was exceeded in the comparison. The comparison was aborted. |