Initializing help system before first use

XPRS_nml_removenames

XPRS_nml_removenames


Purpose
The XPRS_nml_* functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user. XPRS_nml_removenames will remove the specified names from the name list. Any subsequent names will be moved down to replace the removed names.
Synopsis
int XPRS_CC XPRS_nml_removenames(XPRSnamelist nml, int firstIndex, int lastIndex);
Arguments
nml 
The name list from which you want to remove names. Must be an object previously returned by XPRS_nml_create, as XPRSnamelist objects returned by other functions are immutable and cannot be changed.
firstIndex 
The index of the first name to remove. Note that indices for names in a name list always start from 0.
lastIndex 
The index of the last name to remove.
Example
XPRS_nml_removenames(mylist, 3, 5);
Related topics