Purpose
Set a value in the Xpress-SLP 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-SLP string table.
|
|
cValue
|
Value to be set.
|
Example
The following example puts the current date and time into the Xpress-SLP
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
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.