X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Finchs.c;h=180d3245db3388be1c9c268b93ce3ae8922d69f7;hp=93cd4c225ae386917f007bb65dbf16bacd51e39e;hb=41068edef084c39be0cecdf949d9b538d925f42c;hpb=eb312e0bb90463a33aa8a53f825b32dc189af023 diff --git a/test/inchs.c b/test/inchs.c index 93cd4c22..180d3245 100644 --- a/test/inchs.c +++ b/test/inchs.c @@ -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); }