P_buf_get 3porty 2011-04-13 libporty manual

NAME

P_buf_get, P_buf_free

SYNPOSIS

#include <libporty/util/buf.h>

char * P_buf_get (P_buf_t *buff );
void P_buf_free (char *str );

Link with -lporty_util

DESCRIPTION

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).

RETURN VALUE

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.

SEE ALSO

P_buf_get 3porty 2011-04-13 libporty manual