void *ubuf = xallocubuf (12); assert (xubuflen(ubuf) == 12)
xubuflen - return length of xmsg
#include <xio/socket.h>
int *xubuflen (void *xmsg);
Return the xmessage size allocated by xallocubuf[3]
On success, length is returned. On error, -1 is returned, and errno is set appropriately.
xmsg is not a valid xsockmsg
void *ubuf = xallocubuf (12); assert (xubuflen(ubuf) == 12)
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>