int main(int argc, char **argv) { struct setterm_control ctl = { 0 }; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); atexit(close_stdout); if (argc < 2) usage(stderr); parse_option(&ctl, argc, argv); init_terminal(&ctl); perform_sequence(&ctl); return EXIT_SUCCESS; }
int main(int argc, char **argv) { struct setterm_control ctl = { NULL }; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); atexit(close_stdout); if (argc < 2) { warnx(_("bad usage")); errtryhelp(EXIT_FAILURE); } parse_option(&ctl, argc, argv); init_terminal(&ctl); perform_sequence(&ctl); return EXIT_SUCCESS; }