msgdsize(9r)msgdsize(9r)NAMEmsgdsize - STREAMS: Returns the number of bytes in a message
SYNOPSIS
#include <sys/stream.h>
int msgdsize(
MBLKP message_block_ptr );
ARGUMENTS
Specifies a pointer to the message block to be evaluated. The typedef
MBLKP is an alternate name for typedef struct msgb *.
DESCRIPTION
The msgdsize interface counts the number of bytes in a data message.
Only bytes included in the data blocks with a message type of M_DATA
(ordinary data) is included in the count.
RETURN VALUES
Upon successful completion, the msgdsize interface returns the number
of data bytes in a message, expressed as an integer.
msgdsize(9r)