X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Finch_wide.c;h=25af426aba8051cf8f79531c74b972693aa616ee;hp=01826c455048514259b5574d2a74254f8c232ea0;hb=772f879d17117c5b766022f28099e341ebea825b;hpb=6bbba9cd97d487dc567d06eb8f9131825abe3962;ds=sidebyside diff --git a/test/inch_wide.c b/test/inch_wide.c index 01826c45..25af426a 100644 --- a/test/inch_wide.c +++ b/test/inch_wide.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: inch_wide.c,v 1.5 2007/06/30 17:50:44 tom Exp $ + * $Id: inch_wide.c,v 1.6 2007/07/21 18:37:38 tom Exp $ */ /* int in_wch(cchar_t *wcval); @@ -103,10 +103,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) { @@ -267,7 +267,7 @@ main(int argc, char *argv[]) test_inchs(1, argv, chrwin, strwin); endwin(); - return EXIT_SUCCESS; + ExitProgram(EXIT_SUCCESS); } #else int