xref: /illumos-gate/usr/src/cmd/sendmail/libsm/clrerr.c (revision 2a8bcb4e)
1 /*
2  * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3  *      All rights reserved.
4  * Copyright (c) 1990, 1993
5  *	The Regents of the University of California.  All rights reserved.
6  *
7  * This code is derived from software contributed to Berkeley by
8  * Chris Torek.
9  *
10  * By using this file, you agree to the terms and conditions set
11  * forth in the LICENSE file which can be found at the top level of
12  * the sendmail distribution.
13  */
14 
15 #include <sm/gen.h>
16 SM_RCSID("@(#)$Id: clrerr.c,v 1.11 2001/01/28 00:29:34 ca Exp $")
17 #include <sm/io.h>
18 #include <sm/assert.h>
19 #include "local.h"
20 
21 /*
22 **  SM_IO_CLEARERR -- public function to clear a file pointer's error status
23 **
24 **	Parameters:
25 **		fp -- the file pointer
26 **
27 **	Returns:
28 **		nothing.
29 */
30 #undef	sm_io_clearerr
31 
32 void
33 sm_io_clearerr(fp)
34 	SM_FILE_T *fp;
35 {
36 	SM_REQUIRE_ISA(fp, SmFileMagic);
37 
38 	sm_clearerr(fp);
39 }
40