Returns the character at the end of a designated list.
#include <sys/types.h> #include <sys/errno.h> #include <cblock.h>
int getcx (header) struct clist *header;
header | Specifies the address of the clist structure that describes the character list. |
Attention: The caller of the getcx service must ensure that the character list is pinned. This includes the clist header and all the cblock character buffers. Character buffers acquired from the getcf service are pinned.
The getcx kernel service is identical to the getc service, except that the getcx service returns the character at the end of the list instead of the character at the front of the list. The character at the end of the list is the last character in the first buffer, not in the last buffer.
The getcx kernel service can be called from either the process or interrupt environment.
The getcx service returns the character at the end of the list instead of the character at the front of the list.
The getcx kernel service is part of Base Operating System (BOS) Runtime.
The getcf kernel service.
I/O Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.