Checks if strv contains str.
strv
str
strv must not be null.
a string
a null-terminated array of strings
true if str is an element of strv, according to str_equal.