Data buffers

Semi-abstract buffer interface. More...

Data Structures

struct  LWMsgBuffer
 Generic buffer. More...
 

Functions

LWMsgStatus lwmsg_buffer_print (LWMsgBuffer *buffer, const char *fmt,...)
 Print into buffer. More...
 

Detailed Description

Function Documentation

LWMsgStatus lwmsg_buffer_print ( LWMsgBuffer buffer,
const char *  fmt,
  ... 
)

Prints into an LWMsgBuffer according to the specified format string and parameters, calling the buffer's wrap function as needed.

Parameters
[in,out]bufferthe buffer to print into
[in]fmtthe format string
Return values
LWMSG_STATUS_SUCCESSsuccess
LWMSG_STATUS_MEMORYout of memory
LWMSG_STATUS_EOFend of buffer reached