PSENDCHAR(3R)

NAME
psendchar, psendnchars, xpsendchar, xpsendnchars - send character to printer port

SYNOPSIS
int psendchar (c)

int xpsendchar (c)

void psendnchars (n, s)

void xpsendnchars (n, s)

char c;
int n;
char *s;

DESCRIPTION
The psendchar function sends a single byte to the printer output queue. If the calling process does not own the printer, psendchar will send nothing to the printer and returns a 0. Otherwise, psendchar initiates printing and returns a 1.

The xpsendchar function is identical to psendchar except that it may expand tabs and filter escape sequences depending on the printer's setup values.

The psendnchars and xpsendnchars functions send the string s of length n to the printer. Xpsenchars handles expanding tabs and filtering escape sequences. These routines block until all the characters fit on the printer output queue.

If the printer output queue is full, the above functions will block the
calling process until they are able to place the data into the printer queue.

SEE ALSO
resources(3R).