---
name: "get_options"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/get_options"
---

# get\_options(9)

Parse a string into a list of integers

## 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
