Skip to content

StrFind

Description

Find the first character in the string equal to the value at chr_ptr, using the provided comparator. Same contract as VecFind, specialised for the char element.

Parameters

Name Direction Description
str in String to search.
chr_ptr in Pointer to the character value to search for.
compare in Comparator returning 0 for equality.

Success

Returns the zero-based index of the first matching character. The string is not modified.

Failure

Returns SIZE_MAX when no character matches. The string is not modified.

Usage example (Cross-references)

Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on