stock
xs_strchr
Syntax
stock xs_strchr(const str[], chr)
Description
Finds a character in a string and returns its position in the string.
Parameters
| str | The string to search in. |
|---|---|
| chr | The character to search for in the string. |
Return
The character position if found, -1 otherwise.