'\"macro stdmacro
.if n .pH ddi_dki.clrbuf @(#)clrbuf	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} clrbuf D3DK "" "DDI/DKI" "\&"
.if \nX=1 .ds x} clrbuf D3DK "" "DDI/DKI"
.if \nX=2 .ds x} clrbuf D3DK "" "\&"
.if \nX=3 .ds x} clrbuf "" "" "\&"
.TH \*(x}
.IX "\f4clrbuf\fP(D3DK)"
.SH NAME
\f4clrbuf\f1 \- erase the contents of a buffer
.SH SYNOPSIS
.nf
.na
\f4#include <sys/types.h>
#include <sys/buf.h>
.sp 0.5
void clrbuf(\f4struct buf *\f1\f2bp\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n 10
.IP "\f2*bp\f1" 10n
Pointer to the \f4buf\f1(D4DK) structure
.RE
.SH DESCRIPTION
The \f4clrbuf\f1 function zeros a buffer and sets the
\f4b_resid\f1 member of the \f4buf\f1 structure to \f40\f1.  Zeros
are placed in the buffer starting at \f4bp->b_un.b_words\f1 
for a length of \f4bp->b_bcount\f1 bytes.  \f4b_un.b_words\f1 and
\f4b_bcount\f1 are members of the \f4buf\f1 structure defined in
\f4sys/buf.h\f1.
.IX "\f4buf\fP(D4DK)"
.SH "RETURN VALUE"
None
.SH LEVEL
Base or Interrupt
.SH "SEE ALSO"
.na
\f4brelse\f1(D3DK),
\f4buf\f1(D4DK)
.ad
.SH EXAMPLE
See \f4biowait\f1(D3DK).
