int QSwrite_prob (QSprob p, const char *filename, const char *filetype)
/* p is a QSprob, a handle to an existing LP problem */

int rval;

rval = QSwrite_prob (p, "binky.mps", "MPS");
if (rval) {
    fprintf (stderr,
             "Could not write the MPS file, error code %d\n", rval);
}