Restores the printer to its default state.
None (provided by the formatter)
#include <piostruct.h>
int restore ()
The restore subroutine is invoked by the formatter driver after either the lineout subroutine or the passthru subroutine has reported that printing has completed.
If the -J flag passed from the command line has a nonzero value (True), the initialize subroutine should use the piocmdout subroutine to send a command string to the printer to restore the printer to its default state. This default state is defined by the attribute values in the database. Any variables referenced by the command string should be values from the database that have not been overridden by values from the command line. This can be accomplished by placing a %o escape sequence at the beginning of the command string.
A return value of 0 indicates a successful operation. If the restore subroutine detects an error, it uses the piomsgout subroutine to issue an error message. The restore subroutine then invokes the pioexit subroutine with a value of PIOEXITBAD. If either the piocmdout or piogetstr subroutines detect an error, then the subroutine that detects the error issues an error message and terminates the print job.