* authorization. *
****************************************************************************/
/*
- * $Id: inchs.c,v 1.6 2007/06/09 21:25:06 tom Exp $
+ * $Id: inchs.c,v 1.9 2007/07/21 19:01:43 tom Exp $
+ *
+ * Author: Thomas E Dickey
*/
/*
chtype inch(void);
if ((fp = fopen(argv[level], "r")) != 0) {
while ((j = fgetc(fp)) != EOF) {
- if (waddch(txtwin, j) != OK) {
+ if (waddch(txtwin, UChar(j)) != OK) {
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) {
test_inchs(1, argv, chrwin, strwin);
endwin();
- return EXIT_SUCCESS;
+ ExitProgram(EXIT_SUCCESS);
}