int QSget_bound (QSprob p, int colindex, char lu, double *bound)
/* p is an initialized QSprob, a handle to an existing LP problem  */

int rval;
double bound;

rval = QSget_bound (p, 2, 'U', &bound);
if (rval) {
    fprintf (stderr, "could not obtain bound, error code %d\n", rval);
} else {
    printf ("Upper bound of variable 2 is %f\n", bound);
}