Movatterモバイル変換


[0]ホーム

URL:


get_options
Prev Command-line Parsing Next

Name

get_options — Parse a string into a list of integers

Synopsis

char *get_options(const char *str,
 intnints,
 int *ints);
 

Arguments

const char * str

String to be parsed

int nints

size of integer array

int * 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, ifstr is completely parseable).


Prev Up Next
get_option Home memparse

[8]ページ先頭

©2009-2025 Movatter.jp