diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/libc/fclose.c | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/libc/fclose.c')
-rw-r--r-- | sys/libc/fclose.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/libc/fclose.c b/sys/libc/fclose.c new file mode 100644 index 00000000..969c5d50 --- /dev/null +++ b/sys/libc/fclose.c @@ -0,0 +1,23 @@ +/* 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> + +/* FCLOSE -- Close a file opened with fopen. +*/ +int +fclose ( + FILE *fp +) +{ + XINT x_fd = fileno(fp); + + iferr (CLOSE (&x_fd)) + return (EOF); + else + return (OK); +} |