aboutsummaryrefslogtreecommitdiff
path: root/sys/libc/fflush.c
blob: 14a2356ad203f73f0ae5094ed62861112b0eede1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/

#define	import_spp
#define	import_libc
#define	import_stdio
#define	import_xnames
#include <iraf.h>


/* FFLUSH -- Flush the output file.
*/
int
fflush (
  FILE	*fp
)
{
	XINT	x_fd = fileno(fp);

	iferr (FLUSH (&x_fd))
	    return (EOF);
	else
	    return (OK);
}