int QSget_param_double (QSprob p, int whichparam, double *value)
/* p is a QSprob, a handle to an existing LP problem.               */
/* Get the maximum time (in seconds) allowed in the QSopt solvers.  */

int rval;
double param;

rval = QSget_param_double (p, QS_PARAM_SIMPLEX_MAX_TIME, ¶m);
if (rval) {
    fprintf (stderr,
             "Could not get the parameter, error code %d\n", rval);
} else {
    printf (Simplex Maximum Time: %f seconds\n");
}