table of contents
other versions
- stretch 4.9.168-1
GET_OPTIONS(9) | Basic Kernel Library Functions | GET_OPTIONS(9) |
NAME¶
get_options - Parse a string into a list of integersSYNOPSIS¶
char * get_options(const char * str, int nints, int * ints);
ARGUMENTS¶
strString to be parsed
nints
size of integer array
ints
integer array
DESCRIPTION¶
This function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.Return value is the character in the string which caused the parse to end (typically a null terminator, if str is completely parseable).
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |