aboutsummaryrefslogtreecommitdiff
path: root/sys/libc/cclose.c
blob: 630f097d9a250d5fd50b513a8c4be3ea0b62820f (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
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/

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


/* C_CLOSE -- FIO file close.
*/
int
c_close (
  XINT	fd			/* FIO file descriptor		*/
)
{
	XINT  x_fd = fd;

	iferr (CLOSE (&x_fd))
	    return (ERR);
	else
	    return (OK);
}