| Overview | Group | Index | Concepts | 
The routine CPXgetsosname accesses a range of
 special ordered set (SOS) names of a CPLEX problem object. The
 beginning and end of the range, along with the length of the array in which
 the SOS names are to be returned, must be specified.
storespace is 0 (zero), 
 then the negative of the value
 of *surplus_p returned indicates the total number of characters
 needed for the array namestore.
 Example
 status = CPXgetsosname (env, lp, cur_sosname, cur_sosnamestore,
                         cur_storespace, &surplus, 0,
                         cur_numsos-1);
 | env | A pointer to the CPLEX environment as returned by   | 
| lp | A pointer to a CPLEX problem object as returned by   | 
| name | An array of pointers to the SOS names stored in the array   | 
| namestore | An array of characters where the specified SOS names are to be returned. May be NULL if   | 
| storespace | An integer indicating the length of the array   | 
| surplus_p | A pointer to an integer to contain the difference between   | 
| begin | An integer indicating the beginning of the range of sos names to be returned.  | 
| end | An integer indicating the end of the range of sos names to be returned.  | 
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 
 namestore array to hold the names.