1GET_OPTIONS(9)          Basic Kernel Library Functions          GET_OPTIONS(9)
2
3
4

NAME

6       get_options - Parse a string into a list of integers
7

SYNOPSIS

9       char * get_options(const char * str, int nints, int * ints);
10

ARGUMENTS

12       str
13           String to be parsed
14
15       nints
16           size of integer array
17
18       ints
19           integer array
20

DESCRIPTION

22       This function parses a string containing a comma-separated list of
23       integers, a hyphen-separated range of _positive_ integers, or a
24       combination of both. The parse halts when the array is full, or when no
25       more numbers can be retrieved from the string.
26
27       Return value is the character in the string which caused the parse to
28       end (typically a null terminator, if str is completely parseable).
29
31Kernel Hackers Manual 2.6.       November 2011                  GET_OPTIONS(9)
Impressum