int offset = 0, opt_clear = 0, end_common_opts = 0, retval; const char *title = NULL; 
int offset = 0, opt_clear = 0, end_common_opts = 0, retval; const char *title = NULL; 
main (int argc, const char * const * argv){    int offset = 0, opt_clear = 0, end_common_opts = 0, retval;    const char *title = NULL;#ifdef LOCALE    (void) setlocale (LC_ALL, "");#endif#ifdef TRACE    trace(TRACE_CALLS|TRACE_UPDATE);#endif    if (argc < 2) {	Usage (argv[0]);	exit (-1);    }    while (offset < argc - 1 && !end_common_opts) {	/* Common options */	if (!strcmp (argv[offset + 1], "--title")) {	    if (argc - offset < 3 || title != NULL) {		Usage (argv[0]);		exit (-1);	    } else {		title = argv[offset + 2];		offset += 2;	    }        } else if (!strcmp (argv[offset + 1], "--backtitle")) {            if (backtitle != NULL) {                Usage (argv[0]);                exit (-1);            } else {                backtitle = argv[offset + 2];                offset += 2;            }	} else if (!strcmp (argv[offset + 1], "--clear")) {	    if (opt_clear) {		/* Hey, "--clear" can't appear twice! */		Usage (argv[0]);		exit (-1);	    } else if (argc == 2) {	/* we only want to clear the screen */		init_dialog ();		refresh ();	/* init_dialog() will clear the screen for us */		end_dialog ();		return 0;	    } else {		opt_clear = 1;		offset++;	    }	} else			/* no more common options */	    end_common_opts = 1;    }    if (argc - 1 == offset) {	/* no more options */	Usage (argv[0]);	exit (-1);    }    /* use a table to look for the requested mode, to avoid code duplication */    for (modePtr = modes; modePtr->name; modePtr++)	/* look for the mode */	if (!strcmp (argv[offset + 1], modePtr->name))	    break;    if (!modePtr->name)	Usage (argv[0]);    if (argc - offset < modePtr->argmin)	Usage (argv[0]);    if (modePtr->argmax && argc - offset > modePtr->argmax)	Usage (argv[0]);    init_dialog ();    retval = (*(modePtr->jumper)) (title, argc - offset, argv + offset);    if (opt_clear) {		/* clear screen before exit */	attr_clear (stdscr, LINES, COLS, screen_attr);	refresh ();    }    end_dialog();    exit (retval);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b1c5f1c635f4a821f834ed51ccd8a2a1515fffd2/lxdialog.c/buggy/scripts/lxdialog/lxdialog.c