char* QSget_probname (QSprob p)
char *name;

/* p is an initialized QSprob */

name = QSget_probname (p);
if (name == (char *) NULL) {
    fprintf (stderr, "Could not obtain the name of the LP\n");
} else {
    printf ("Problem Name: %s\n", name);
    QSfree (name);  /* Use QSfree for mem allocated by QSopt */
}