1MATCH_STRING(9)            Basic C Library Functions           MATCH_STRING(9)
2
3
4

NAME

6       match_string - matches given string in an array
7

SYNOPSIS

9       int match_string(const char *const * array, size_t n,
10                        const char * string);
11

ARGUMENTS

13       array
14           array of strings
15
16       n
17           number of strings in the array or -1 for NULL terminated arrays
18
19       string
20           string to match with
21

RETURN

23       index of a string in the array if matches, or -EINVAL otherwise.
24
26Kernel Hackers Manual 3.10         June 2019                   MATCH_STRING(9)
Impressum