if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) { endwin (); fprintf (stderr, "\nError moving file pointer in print_position().\n"); exit (-1); } wattrset (win, position_indicator_attr); wbkgdset (win, position_indicator_attr & A_COLOR); percent = !file_size ? 100 : ((fpos - bytes_read + page - buf) * 100) / file_size; wmove (win, height - 3, width - 9); wprintw (win, "(%3d%%)", percent); 
if ((fpos = lseek(fd, 0, SEEK_CUR)) == -1) { endwin(); fprintf(stderr, "\nError moving file pointer in print_position().\n"); exit(-1); } wattrset(win, position_indicator_attr); wbkgdset(win, position_indicator_attr & A_COLOR); percent = !file_size ? 100 : ((fpos - bytes_read + page - buf) * 100) / file_size; wmove(win, height - 3, width - 9); wprintw(win, "(%3d%%)", percent); 
print_position (WINDOW * win, int height, int width){    int fpos, percent;    if ((fpos = lseek (fd, 0, SEEK_CUR)) == -1) {	endwin ();	fprintf (stderr, "\nError moving file pointer in print_position().\n");	exit (-1);    }    wattrset (win, position_indicator_attr);    wbkgdset (win, position_indicator_attr & A_COLOR);    percent = !file_size ?	100 : ((fpos - bytes_read + page - buf) * 100) / file_size;    wmove (win, height - 3, width - 9);    wprintw (win, "(%3d%%)", percent);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b1c5f1c635f4a821f834ed51ccd8a2a1515fffd2/textbox.c/buggy/scripts/lxdialog/textbox.c