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

int nrows;

nrows = QSget_rowcount (p);
printf ("Number of constraints: %d\n", nrows);