home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fchk294s.zip / ftnchek-2.9.4 / ftnchek.c.patch < prev    next >
Text File  |  1996-10-04  |  771b  |  29 lines

  1. *** ftnchek.c    Fri Oct 04 18:06:24 1996
  2. --- ftnchek.c.distribution    Fri Oct 04 16:21:40 1996
  3. ***************
  4. *** 795,809 ****
  5.   
  6.       if ((make_dcls > 0) && (dcl_fd != stdout))
  7.       {
  8.           if (ftell(dcl_fd) == 0L)    /* delete an empty .dcl file */
  9. !             {
  10. !               /* some systems like OS/2 lock open files and can't  */
  11. !               /* remove an open file unless closed. SAD-10/96      */
  12. !             (void) fclose(dcl_fd);   /* close file */
  13. !         (void) unlink(dclfile);
  14. !             }
  15.           (void) fclose(dcl_fd);
  16.       }
  17.   
  18. --- 795,802 ----
  19.   
  20.       if ((make_dcls > 0) && (dcl_fd != stdout))
  21.       {
  22.           if (ftell(dcl_fd) == 0L)    /* delete an empty .dcl file */
  23. !         (void)unlink(dclfile);
  24.           (void) fclose(dcl_fd);
  25.       }
  26.   
  27.