int QSget_tableau_row (QSprob p, int indx, double *tableaurow)
/* p is an initialized QSprob, a handle to an existing LP problem */ int j, rval, ncols, nrows; double *tableau; ncols = QSget_colcount (p); nrows = QSget_rowcount (p); tableau = (double *) malloc ((ncols + nrows) * sizeof (double)); rval = QSget_tableau_row (p, indx, tableau); if (rval) { fprintf (stderr, "could not obtain tableau, error code %d\n", rval); } else { for (j = 0; j < ncols + nrows; j++) { printf ("tableau[%d] = %f\n", j, tableau[j]); } } free (tableau);