XSLPgetnames
XSLPgetnames |
Purpose
Retrieve the names of a set of Xpress NonLinear entities
Synopsis
int XPRS_CC XSLPgetnames(XSLPprob Prob, int Type, char *cNames, int First, int Last);
Arguments
Prob
|
The current SLP problem.
|
||||||
Type
|
Type of entity. The following are defined:
For compatibility with
XSLPgetindex, values for
Type of 1 (rows) and 2 (columns) are also possible.
|
||||||
cNames
|
Character buffer to receive the names. Each name will be terminated by a null character.
|
||||||
First
|
Index of first item to be returned.
|
||||||
Last
|
Index of last item to be returned.
|
Example
The following example retrieves the names of internal function numbers 3 and 4.
char ch, Buffer[60]; XSLPgetnames(Prob, XSLP_INTERNALNAMES, Buffer, 3, 4); ch = Buffer; printf("\nFunction #3 is %s",ch); for (;;ch++) if (*ch == '\0') break; ch++; printf("\nFunction #4 is %s",ch);
Names are returned in
Buffer separated by null characters.
ch finds the null character and hence the start of the next name.
Further information
First and
Last always count from 1.
Related topics