/* sample.c */ #include #include #include int main(void) { glp_prob *lp; lp = glp_create_prob(); /* the program aborts during the function call */ /* it should instead return an error code */ int ret = glp_write_lp(lp, NULL, "problem"); glp_delete_prob(lp); return 0; } /* eof */