XSLPsetstring
XSLPsetstring |
Purpose
Set a value in the Xpress NonLinear string table
Synopsis
int XPRS_CC XSLPsetstring(XSLPprob Prob, int *Param, const char *cValue);
Arguments
Prob
|
The current SLP problem.
|
Param
|
Address of an integer to receive the index of the string in the Xpress NonLinear string table.
|
cValue
|
Value to be set.
|
Example
The following example puts the current date and time into the Xpress NonLinear string table and later recovers and prints it:
int iTime; char *Buffer[200]; time_t Time; time(&Time); XSLPsetstring(Prob, &iTime, ctime(Time)); ... XSLPgetstring(Prob, iTime, Buffer); printf("\nStarted at %s",Buffer);
Further information
XSLPsetstring provides a convenient way of passing string information between routines by means of integer indices.
Related topics