int QSget_intflags (QSprob p, int *intflags)
/* p is an initialized QSprob, a handle to an existing LP problem */ int j, ncols; int *intflags; ncols = QSget_colcount (p); intflags = (int *) malloc (ncols * sizeof (int)); rval = QSget_intflags (p, intflags); if (rval) { fprintf (stderr, "could not get intflags, error code %d\n", rval); } else { printf ("Integer Variables\n"); for (j = 0; j < ncols; j++) { if (intflags[j] == 1) { printf ("%d ", j); } } printf ("\n"); } free (intflags);