with the meaning "a character was found".
strpbrk(3) is just like strchr(3), but searches for multiple characters.
Both functions have a boolean-like return value, which evaluates to true
if a character was found.
A better name for strpbrk(3) would have been strchrs().
Signed-off-by: Alejandro Colomar <alx@kernel.org>
/* For each character of field, search if it appears in the list
* of illegal characters. */
- if (illegal && NULL != strpbrk (field, illegal)) {
+ if (illegal && strpbrk(field, illegal)) {
return -1;
}
val = stpsep(cp, "=");
if (val == NULL)
continue;
- if (strpbrk(name, " \t") != NULL)
+ if (strpbrk(name, " \t"))
continue;
#if 0 /* XXX untested, and needs rewrite with fewer goto's :-) */
/*