Description
This function accesses the name of the network problem stored in a CPLEX network problem object.Return Value
If the operation is successful, CPXNETgetprobname() returns the value 0; if not, it returns a nonzero value to indicate an error. The value CPXERR_NEGATIVE_SURPLUS indicates that there was not enough space in the buf array to hold the names.Synopsis
int CPXNETgetprobname (CPXENVptr env,
CPXNETptr net,
char *buf,
int bufspace,
int *surplus_p);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
char *bufBuffer into which the problem name is copied.
int bufspaceSize of the
buf array in bytes.
int *surplus_pPointer to an integer to which the difference between
bufspace and the number of characters required to store the problem name is returned. A non-negative value indicates that namestore was sufficient. A negative value indicates that it was insufficient. In this case CPXERR_NEGATIVE_SURPLUS is returned and the negative value of surplus_p indicates the amount of insufficient space in the buf array.
status = CPXNETgetprobname (env, net, name);