'\"macro stdmacro
.if n .pH ddi_dki.msgdsize @(#)msgdsize	40.6 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} msgdsize D3DK "STREAMS" "DDI/DKI" "\&"
.if \nX=1 .ds x} msgdsize D3DK "STREAMS" "DDI/DKI"
.if \nX=2 .ds x} msgdsize D3DK "" "\&"
.if \nX=3 .ds x} msgdsize "" "" "\&"
.TH \*(x}
.IX "\f4msgdsize\fP(D3DK)"
.IX "STREAMS messages"
.SH NAME
\f4msgdsize\f1 \- return the number of bytes in a message
.SH SYNOPSIS
.nf
.na
\f4#include <sys/stream.h>
.sp 0.5
int msgdsize(mblk_t *\f2mp\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n 10
.IP "\f2mp\f1" 10n
Message to be evaluated.
.RE
.SH DESCRIPTION
\f4msgdsize\f1 counts the number of bytes in a data message.
Only bytes included in the data blocks of type \f4M_DATA\f1 are included
in the count.
.SH RETURN VALUE
The number of data bytes in a message, expressed as an integer.
.SH LEVEL
Base or Interrupt
.SH SEE ALSO
\f2BCI Driver Development Guide\f1, Chapter 7, ``STREAMS''
.SH EXAMPLE
See the \f4bufcall\f1(D3DK) function page for an example of the
\f4msgdsize\f1 function.
