- setupterm((char *) 0, STDOUT_FILENO, (int *) 0);
- if (clear_screen == (char *) 0)
- return EXIT_FAILURE;
- tputs(clear_screen, lines > 0 ? lines : 1, putch);
- return EXIT_SUCCESS;
+ setupterm((char *) 0, STDOUT_FILENO, (int *) 0);
+ ExitProgram((tputs(clear_screen, lines > 0 ? lines : 1, putch) == ERR)
+ ? EXIT_FAILURE
+ : EXIT_SUCCESS);