NO FRAMES

CPXNETgetprobname

int CPXPUBLIC CPXNETgetprobname(CPXCENVptr env, CPXCNETptr net, char * buf_str, int bufspace, int * surplus_p)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETgetprobname is used to access the name of the problem stored in a network problem object.

Example

 status = CPXNETgetprobname (env, net, name, namesize, &surplus);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

buf_str

Buffer into which the problem name is copied.

bufspace

Size of the array buf_str in bytes.

surplus_p

Pointer to an integer in which the difference between bufspace and the number of characters required to store the problem name is returned. A nonnegative value indicates that bufspace was sufficient. A negative value indicates that it was insufficient. In that case, CPXERR_NEGATIVE_SURPLUS is returned and the negative value of surplus_p indicates the amount of insufficient space in the array buf.

Returns:

The routine returns zero on success and nonzero if an error occurs. The value CPXERR_NEGATIVE_SURPLUS indicates that there was not enough space in the buf array to hold the name.