Places a character on a character list.
Item | Description |
---|---|
c | Specifies the character to place at the front of the character list. |
header | Specifies the address of the clist structure that describes the character list. |
The putcx kernel service puts the character specified by the c parameter at the front of the character list pointed to by the header parameter. The putcx service is identical to the putc service, except that it puts the character at the front of the list instead of at the end.
If the putcx service indicates that there are no more buffers available, the waitcfree service can be used to wait until a character buffer is available.
The putcx kernel service can be called from either the process or interrupt environment.
Item | Description |
---|---|
0 | Indicates successful completion. |
-1 | Indicates that the character list is full and no more buffers are available. |