clreol function >> conio.h >> Clears end line in text window
clreol function >> conio.h >> Clears end line in text window
What it does :
- clears end line in text window in text mode
- Clreol clears all characters from the cursor position to the end of the line within the current text window , without moving the cursor.
- It does not return anything
- Lines below it remains as it is . Line below are not shifted up .
- Header File : conio.h
void clreol(void);
Live Examples :
#include"stdio.h" #include"conio.h" int main(void) { clrscr(); printf("C Programming is very Funny\n"); printf("C Programming is Multi perpose Language\n"); printf("C Programming is Simple\n"); printf("Press any key to continue . . ."); gotoxy(1, 4); // Move cursor Position to (1,4) getch(); clreol(); getch(); }
Output Before Execution of Clreol Function :
C Programming is very Funny C Programming is Multi perpose Language C Programming is Simple Press any key to continue . . .
Output : After Execution of Clreol Function : Clears Line from current Position
C Programming is very Funny C Programming is Multi perpose Language C Programming is Simple