| Overview | Group | Index | Concepts | 
The routine CPXgetobjname accesses the name of
 the objective row of a CPLEX problem object.
bufspace is 0, then the negative of the value
 of surplus_p returned indicates the total number of characters
 needed for the array buf_str.
 Example
 status = CPXgetobjname (env, lp, cur_objname, lenname,
                         &surplus);
 | env | A pointer to the CPLEX environment as returned by   | 
| lp | A pointer to a CPLEX problem object as returned by   | 
| buf_str | A pointer to a buffer of size   | 
| bufspace | An integer indicating the length of the array   | 
| surplus_p | A pointer to an integer to contain the difference between   | 
The routine returns zero if successful and nonzero 
 if an error occurs. The value CPXERR_NEGATIVE_SURPLUS 
 indicates that insufficient space was available in the buf_str 
 array to hold the objective name.