.TH ioputc() "" "" "Internal Kernel Routine"
.PC "Put a character into I/O segment"
.B "#include <sys/io.h>"
\fBint ioputc(\fIc\^\fB, \fIiop\^\fB)\fR
\fBchar \fIc\^\fB; IO *\fIiop\^\fB;\fR
.PP
.B ioputc()
writes character \fIc\fR into the I/O segment referenced by \fIiop\fR.
If an address fault occurs,
.B ioputc()
calls
.B set_user_error()
with value
.B EFAULT
and returns \-1;
otherwise, it decrements \fIiop\fB->io_ioc\fR
by one and returns the value of the character written.
If \fIiop\fB->io_ioc\fR (the I/O count) is zero, it returns \-1.
.SH "See Also"
.B
internal kernel routines
.R
