msgdsize - STREAMS: Returns the number of bytes in a message
#include <sys/stream.h>
int msgdsize(
MBLKP message_block_ptr );
Specifies a pointer to the message block to be evaluated.
The typedef MBLKP is an alternate name for typedef struct
msgb *.
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.
Upon successful completion, the msgdsize interface returns
the number of data bytes in a message, expressed as an
integer.
msgdsize(9r)
[ Back ] |