23.3 putc (0967)

This procedure is called by

   canon     (8323)
   ttyinput  (8355, 8358)
   ttyoutput (8414, 8478)
   pcrint    (8730)
   pcoutput  (8756)
   lpoutput  (8990)

with two arguments: a character and the address of a “clist” structure.

“getc” and “putc” have related functions and the codes for the two procedures are similar in many respects. For this reason the code for “putc” will not be examined in detail, but is left for the reader.

It should be noted that “putc” can fail if a new “cblock” is needed and “cfreelist” is empty. In this case a non-zero value (line 1002) is returned rather than a zero value (line 0996).

Note. The procedures “getc” and “putc” discussed here are NOT directly related to the procedures d1scussed in the Sections “GETC(III)” and “PUTC(III)” of the UPM.