The PLplot Plotting Library: Programmer's Reference Manual
Prev | Chapter 18. The Specialized C API for PLplot | Next

### `plexit`: Error exit

`plexit` (message);

This routine is called in case an error is encountered during execution of a PLplot routine. It prints the error message, tries to release allocated resources, calls the handler prvided by `plsexit` and then exits. If cleanup needs to be done in the driver program then the user may want to supply his/her own exit handler and pass it in via `plsexit`. This function should either call `plend` before exiting, or simply return.

`message` (`char *`, input) Error message.

Prev | Home | Next
`plabort`: Error abort | Up | `plgfile`: Get output file handle