don't allow negative zero; ``printf("%.3f", (double)-0.00005);''
[unix-history] / usr / src / lib / libc / stdio / clrerr.c
CommitLineData
2ce81398
DS
1#if defined(LIBC_SCCS) && !defined(lint)
2static char sccsid[] = "@(#)clrerr.c 5.2 (Berkeley) %G%";
3#endif LIBC_SCCS and not lint
b8f253e8 4
41e01b3e
S
5#include <stdio.h>
6#undef clearerr
f06c3867
BJ
7
8clearerr(iop)
41e01b3e 9 register FILE *iop;
f06c3867
BJ
10{
11 iop->_flag &= ~(_IOERR|_IOEOF);
12}