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