Returns a pointer, first, to the first ocurrence of any character in src which is contained in dest.
- Parameters
-
dest | pointer to string to compare against |
dmax | restricted maximum length of string dest |
src | pointer to the string |
slen | restricted length of string src |
first | returned pointer to first occurence |
- 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_STR.
- Returns
- pointer to the first ocurrence of any character contained in src
- Return values
-
EOK | when successful operation |
ESNULLP | when dest/src/first is NULL pointer |
ESZEROL | when dmax/slen = 0 |
ESLEMAX | when dmax/slen > RSIZE_MAX_STR |
- See also
- strfirstchar_s(), strlastchar_s(), strfirstdiff_s(), strfirstsame_s(), strlastdiff_s(), strlastsame_s()