Specifications

4-36
Guide to Printers and Printing
put_header( fnaddr, width ) Prints a header page with no following form–feed and
returns the number of lines printed. The fnaddr and width
parameters are optional.
int (* fnaddr );
The fnaddr parameter defines the format subroutine used
to display characters on the header page. The default is
the putchar subroutine.
int * width;
The width parameter defines the width of the form. The
default value for the width parameter is 80.
put_trailer( user, fnaddr,
width )
Prints a trailer page for user with no following form–feed
and returns the number of lines printed. The fnaddr and
width parameters are optional.
char * user;
int (* fnaddr );
The fnaddr parameter defines the format subroutine used
to display characters on the header page. The default is
the putchar subroutine.
int * width
The width parameter defines the width of the form. The
default value for the width parameter is 80.
sysnot( user, host,
message, pref )
Sends a message to the user if the backend cannot run a
job.
char * user;
char * host;
char * message;
unsigned int * pref;
The value of the pref parameter indicates whether to mail
the message to the user or to write the message on the
users terminal. The valid values defined in
/usr/include/IN/backend.h file are:
DOMAIL
Mails the error message to the user.
DOWRITE
Writes the message to the users terminal if the user
is logged on. If the user is not logged on, the
message is mailed to the user.