The function clear_the_line() clears the specified row on the screen. The coding of the function is as follows:
/* Function to clear the Line on the Screen, for Specified Row Number */
void clear_the_line(unsigned int row)
{
unsigned int column;
/* There are 80 Columns in a Row (Line) */
for(column=1;column<=80;column++)
{
gotoxy(column,row);
cprintf(" "); /* Clear With " " */
}
}
Comments on coding:
The function is used to clear the specified row on the screen. The function is called with the number of row, which is to be cleared from the screen.
|