XPRBsetprobname
XPRBsetprobname |
Purpose
Synopsis
int XPRBsetprobname(XPRBprob prob, const char *name);
Arguments
prob
|
Reference to a problem.
|
name
|
A string of up to 1024 characters containing the new problem name.
|
Return value
0 if function executed successfully, 1 otherwise.
Example
XPRBprob expl2; const char *pbname; expl2 = XPRBnewprob("example2"); XPRBsetprobname(expl2, "example_two"); pbname = XPRBgetprobname(expl2); printf("%s", pbname);
This creates a new problem, than changes its name and prints the new name
example_two.
Related topics