str A pointer to a character string. If this character string is a null string, 0 is returned. charset A pointer to a character string containing the set of characters for which the function will search.