ringqPutStr basic EMF

Synopsis

Add a string to the queue.

Prototype

 #include "uemf.h"

 int ringqPutStr(ringq_t *rq, char_t *str);, 

Parameters

rqThe ringq returned from a previous call to ringqOpen.
strString to add to the queue.

Description

If dealing in wide strings, you must explicitly put the trailing two nulls. This routine will grow the queue as required and correctly set endbuf and buf.

Return Value

Returns the number of bytes successfully added.

Example

ringqPutStr(&p.tagbuf, (char_t*) p.tokbuf.servp);

Stability Classification

Evolving.

See Also

ringqOpen, ringqPutBlk