xs_strchr

Syntax

stock xs_strchr(const str[], chr)

Usage

str
The string to search in.
chr
The character to search for in the string.

Description

Finds a character in a string and returns its position in the string.

Return

The character position if found, -1 otherwise.