Name

get_longoptions — Parse a string into a list of longs

Synopsis

char * get_longoptions (const char * str,
 int nlongs,
 long * longs);
 

Arguments

str

String to be parsed

nlongs

size of long array

longs

long array

Description

This function parses a string containing a comma-separated list of longs. 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).