Table of Content

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 :
  1. clears line in text window in text mode containing current cursor
  2.  delline deletes the line containing the cursor 
  3. moves all lines below it one line up. 
  4. delline operates within the currently active text window.
  5. It does not return anything
  6. 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 . . .