a routine called when the program is about to terminate
int my_done( struct _doc_ctrl *c );
This function is called when the program is about to terminate. It should:
reset_device( fileno( prn_fd ));
The default version of this function does nothing.
| This function is called when the print filter terminates normally or abnormally. |
An exit code (usually EOK) to be returned to the shell. For other possible values, see errno in the C Library Reference.
Photon
| Safety: | |
|---|---|
| Interrupt handler | Not applicable |
| Signal handler | Not applicable |
| Thread | Not applicable |