.th K_close II 4/21/86
.sh NAME
K_close \- close a file
.sh "MODULA SYNOPSIS"
.nf
 CONST od: openDescriptor;
 VAR   status: K_err_num;
 ...
 status := NK_close(od);
.sp
.sh "C SYNOPSIS"
 char od;
 int status;
 ...
 status = K_close(od);
.sp
.fi
.sh DESCRIPTION
K_close closes the file, terminal, extent, or device identified by the
given open descriptor (previously returned from a K_create or a
K_open).  Upon process exit, close of all open files, extents,
terminals, and devices is performed automatically.
.sp
K_close does not cause any device action, such as tape rewinding.
.sh EXCEPTIONS
.lp 22 15
XbadOd	Bad Open Descriptor
.i0
.sh "SEE ALSO"
K_create(II), K_open(II)
