XPRS_nml_addnames
XPRS_nml_addnames |
Purpose
The
XPRS_nml_* functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user. Use the
XPRS_nml_addnames to add names to a name list, or modify existing names on a namelist.
Synopsis
int XPRS_CC XPRS_nml_addnames(XPRSnamelist nml, const char buf[], int firstIndex, int lastIndex);
Arguments
nml
|
The name list to which you want to add names. Must be an object previously returned by
XPRS_nml_create, as
XPRSnamelist objects returned by other functions are immutable and cannot be changed.
|
names
|
Character buffer containing the null-terminated string names.
|
first
|
The index of the first name to add/replace. Name indices in a namelist always start from 0.
|
last
|
The index of the last name to add/replace.
|
Example
char mynames[0] = "fred\0jim\0sheila" ... XPRS_nml_addnames(nml,mynames,0,2);
Related topics