1MATCH_STRING(9) Basic C Library Functions MATCH_STRING(9)
23
4
NAME
6match_string - matches given string in an array
7
SYNOPSIS
9int match_string(const char *const * array, size_t n,
10const char * string);
11
ARGUMENTS
13array
14array of strings
1516
n
17number of strings in the array or -1 for NULL terminated arrays
1819
string
20string to match with
21
RETURN
23index of a string in the array if matches, or -EINVAL otherwise.
24
COPYRIGHT
26Kernel Hackers Manual 3.10 June 2019 MATCH_STRING(9)