Lines Matching defs:array
721 * match_string - matches given string in an array
722 * @array: array of strings
723 * @n: number of strings in the array or -1 for NULL terminated arrays
726 * This routine will look for a string in an array of strings up to the
727 * n-th element in the array or until the first NULL element.
735 * index of a @string in the @array if matches, or %-EINVAL otherwise.
737 int match_string(const char * const *array, size_t n, const char *string)
743 item = array[index];
755 * __sysfs_match_string - matches given string in an array
756 * @array: array of strings
757 * @n: number of strings in the array or -1 for NULL terminated arrays
760 * Returns index of @str in the @array or -EINVAL, just like match_string().
763 * This routine will look for a string in an array of strings up to the
764 * n-th element in the array or until the first NULL element.
771 int __sysfs_match_string(const char * const *array, size_t n, const char *str)
777 item = array[index];