int QSget_intcount (QSprob p, int *count)
/* p is an initialized QSprob, a handle to an existing LP problem  */

int rval, count;

rval = QSget_intcount (p, &count);
if (rval) {
    fprintf (stderr, 
             "could not get integer count, error code %d\n", rval);
} else {
    printf ("Problem has %d integer variables\n", count);
}