]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/inchs.c
ncurses 5.6 - patch 20070721
[ncurses.git] / test / inchs.c
index 93cd4c225ae386917f007bb65dbf16bacd51e39e..180d3245db3388be1c9c268b93ce3ae8922d69f7 100644 (file)
@@ -26,7 +26,9 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: inchs.c,v 1.7 2007/06/30 17:50:44 tom Exp $
+ * $Id: inchs.c,v 1.9 2007/07/21 19:01:43 tom Exp $
+ *
+ * Author: Thomas E Dickey
  */
 /*
        chtype inch(void);
@@ -100,10 +102,10 @@ test_inchs(int level, char **argv, WINDOW *chrwin, WINDOW *strwin)
                break;
            }
        }
+       fclose(fp);
     } else {
        wprintw(txtwin, "Cannot open:\n%s", argv[1]);
     }
-    fclose(fp);
 
     while (!Quit(j = mvwgetch(txtwin, txt_y, txt_x))) {
        switch (j) {
@@ -266,5 +268,5 @@ main(int argc, char *argv[])
     test_inchs(1, argv, chrwin, strwin);
 
     endwin();
-    return EXIT_SUCCESS;
+    ExitProgram(EXIT_SUCCESS);
 }