You are here

delline

delline function deletes the line containing the cursor and move all lines below it one line up.

C programming code for delline

  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. main()
  5. {
  6.    printf("This line will be deleted when you press a key.");
  7.  
  8.    getch();
  9.    delline();
  10.  
  11.    printf("Line deleted successfully.");
  12.  
  13.    getch();
  14.    return 0;
  15. }