get_option9
Parse integer from an option string
Usage
int get_option(char ** str, int * pint);
Arguments
str
option string
pint
(output) integer value parsed from str
Overview
Read an int from an option string; if available accept a subsequent comma as well.
Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range
Releases
6 releases since Debian 4.0 (Etch); the text changed 5 times.