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

int nzcount;

nzcount = QSget_nzcount (p);
printf ("Number of non-zero constraint coefficients: %d\n", nzcount);