__strchr__
- :
idx =strchr(str, chars)¶ - :
idx =strchr(str, chars, n)¶ - :
idx =strchr(str, chars, n, direction)¶ - :
[i, j] =strchr(…)¶ Locate the characters of str that belong to the set chars.
The result is what
findgives for the mask of such characters. With n, only the first n matches are kept, or the last n when direction is"last"; they stay in ascending order.