* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* write a character to a logical unit bypassing formatted I/O
* ierror = fputc (unit, char)
* char will be sent to the logical unit
* ierror will be 0 if successful; a system error code otherwise.
#include "../libI77/fiodefs.h"
#include "../libI77/f_errno.h"
extern unit units
[]; /* logical units table from iolib */
long *u
; char *c
; long clen
;
if (*u
< 0 || *u
>= MXUNIT
)
return((long)(errno
=F_ERUNIT
));
return((long)(errno
=F_ERNOPEN
));
if (!lu
->uwrt
&& ! nowwriting(lu
))