home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / r / rem-file.zip / remote_file / context_rundow next >
Text File  |  1992-05-03  |  455b  |  14 lines

  1. /* FILE NAME: context_rundown.c */
  2. #include <stdio.h>
  3. #include "remote_file.h"
  4.  
  5. void filehandle_rundown(remote_fh)  
  6. filehandle remote_fh;               /* the context handle is passed in  */
  7. {
  8.    fprintf(stderr, "Server executing context rundown\n");
  9.    if( (FILE *)remote_fh != stdout )
  10.       fclose( (FILE *)remote_fh );  /* file is closed if client is gone */
  11.    remote_fh = NULL;                /* must set context handle to NULL  */
  12.    return;   
  13. }
  14.