Movatterモバイル変換


[0]ホーム

URL:


get_option
Prev Command-line Parsing Next

Name

get_option — Parse integer from an option string

Synopsis

intget_option(char **str,
 int *pint);
 

Arguments

char ** str

option string

int * pint

(output) integer value parsed fromstr

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


Prev Up Next
Command-line Parsing Home get_options

[8]ページ先頭

©2009-2025 Movatter.jp