ringqPutc | basic | EMF |
Add a char to the queue
int ringqPutc(ringq_t *rq, char_t c);,
rq | The ringq returned from a previous call to ringqOpen |
c | Character to add to the queue |
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.
0 on success. -1 on error.