---
name: "get_option"
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_option"
---

# get\_option(9)

Parse integer from an option string

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