delline function >> Clears line and move all lines below it , one line up
delline function >> Clears line and move all lines below it , one line up
What it does :
- clears line in text window in text mode containing current cursor
- delline deletes the line containing the cursor
- moves all lines below it one line up.
- delline operates within the currently active text window.
- It does not return anything
- Header File : conio.h
void delline(void);
Live Examples :
#include"stdio.h"
#include"conio.h"
int main(void)
{
clrscr();
printf("C Programming is very Funnyn");
printf("C Programming is Multi perpose Languagen");
printf("C Programming is Simplen");
printf("Press any key to continue . . .");
gotoxy(1, 3); // Move cursor Position to (1,3)
getch();
delline();
getch();
}
Output Before Execution of delline Function :
C Programming is very Funny
C Programming is Multi perpose Language
C Programming is Simple // Cursor is at beginning of this line
Press any key to continue . . .
Output After Execution of delline Function: 3rd line deleted and 4th line shifted up
C Programming is very Funny
C Programming is Multi perpose Language
Press any key to continue . . .