mojave man page for get_option

Query: get_option

OS: mojave

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GET_OPTION(9)						  Basic Kernel Library Functions					     GET_OPTION(9)

NAME
get_option - Parse integer from an option string
SYNOPSIS
int get_option(char ** str, int * pint);
ARGUMENTS
str option string pint (output) integer value parsed from str
DESCRIPTION
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
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 GET_OPTION(9)
Related Man Pages
mvwaddnstr(3curses) - opensolaris
mvwaddstr(3curses) - opensolaris
waddstr(3curses) - opensolaris
mvaddstr(3curses) - sunos
mvwaddstr(3curses) - sunos
Similar Topics in the Unix Linux Community
Get Options and Parameters
Using perl to get options from command line