ringqPutc basic EMF

Synopsis

Add a char to the queue

Prototype

int ringqPutc(ringq_t *rq, char_t c);, 

Parameters

rq The ringq returned from a previous call to ringqOpen
c Character to add to the queue

Description

The trailing '\0' will not be added if being used to store wide strings. This routine will grow the q as required and correctly sets endbuf and buf.

Return Value

0 on success. -1 on error.

Example



See Also

ringqOpen, ringqPutBlk, ringqPutStr