P_buf_get 3porty | 2011-04-13 | libporty manual |
---|
P_buf_get, P_buf_free
#include <libporty/util/buf.h>char * P_buf_get (P_buf_t *buff );
void P_buf_free (char *str );Link with -lporty_util
P_buf_get removes and returns the next full message from the buffer in FIFO manner. The string returned should be free'd using P_buf_free and never using free(3).
P_buf_get returns a pointer to a string or NULL if there is no full message available in the buffer by the time of the call.
P_buf_get 3porty | 2011-04-13 | libporty manual |
---|