Finds the first occurance of c in the wide character string s.
- Parameters
-
| pStr | [ in ] A pointer to the NULL terminated wide character 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 | The search completed. If a match was found, *ppRetPtr will point to the match. Otherwise it will be NULL. |
| Failure | P6R::eInvalidArg | s or ppRetPtr is NULL |
| P6R::eNotFound | c was not found in s |
| P6R::eTooBig | cchMax characters was exceeded in the comparison. The comparison was aborted. |