Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

get_options(9) [suse man page]

GET_OPTIONS(9)						  Basic Kernel Library Functions					    GET_OPTIONS(9)

NAME
get_options - Parse a string into a list of integers SYNOPSIS
char * get_options(const char * str, int nints, int * ints); ARGUMENTS
str String 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
Kernel Hackers Manual 2.6. July 2010 GET_OPTIONS(9)

Check Out this Related Man Page

stoi(9F)						   Kernel Functions for Drivers 						  stoi(9F)

NAME
stoi, numtos - convert between an integer and a decimal string SYNOPSIS
#include <sys/ddi.h> int stoi(char **str); void numtos(unsigned long num, char *s); INTERFACE LEVEL
Solaris DDI specific (Solaris DDI). PARAMETERS
str Pointer to a character string to be converted. num Decimal number to be converted to a character string. s Character buffer to hold converted decimal number. DESCRIPTION
stoi() The stoi() function returns the integer value of a string of decimal numeric characters beginning at **str. No overflow checking is done. *str is updated to point at the last character examined. numtos() The numtos() function converts a long into a null-terminated character string. No bounds checking is done. The caller must ensure there is enough space to hold the result. RETURN VALUES
The stoi() function returns the integer value of the string str. CONTEXT
The stoi() function can be called from user, interrupt, or kernel context. SEE ALSO
Writing Device Drivers NOTES
The stoi() function handles only positive integers; it does not handle leading minus signs. SunOS 5.11 16 Jan 2006 stoi(9F)
Man Page