The wcsstr_s() function locates the first occurrence of the wide substring pointed to by src which would be located in the wide string pointed to by dest.
- Parameters
-
[in] | dest | wide string to be searched for the substring |
[in] | dmax | restricted maximum length of dest |
[in] | src | pointer to the wide sub string |
[in] | slen | the maximum number of wide characters to use from src |
[out] | substring | the returned substring pointer |
- Precondition
- Neither dest nor src shall be a null pointer.
-
Neither dmax nor slen shall not be 0.
-
Neither dmax nor slen shall not be greater than RSIZE_MAX_WSTR.
- Return values
-
EOK | when successful operation, substring found. |
ESNULLP | when dest/src/substring is NULL pointer |
ESZEROL | when dmax/slen = 0 |
ESLEMAX | when dmax/slen > RSIZE_MAX_STR |
ESNOTFND | when substring not found |
- See also
- wcsstr(), strstr_s(), memcmp32_s()