OptionsGetStringArray

Gets an array of string values for a particular option in the database. The values must be separated with commas with no intervening spaces.

Synopsis

int OptionsGetStringArray(char *pre, char *name, char **strings, int *nmax, int *flg)
Not Collective

Input Parameters

name - the option one is seeking
pre - string to prepend to name or PETSC_NULL
nmax - maximum number of strings

Output Parameter

strings - location to copy strings
flg - 1 if found, else 0

Notes

The user is responsible for deallocating the strings that arereturned. The Fortran interface for this routine is not supported.

Contributed by Matthew Knepley.

Keywords

options, database, get, string

See Also

OptionsGetInt(), OptionsGetDouble(),
OptionsHasName(), OptionsGetIntArray(), OptionsGetDoubleArray()

Location: src/sys/src/objectsoptions.c
System Index
Table of Contents