C / conio.h / clreol
cgets, » clreol, clrscr, cprintf, cputs, cscanf, delline, getch, getche, getpass, gettext, gettextinfo, gotoxy, highvideo, inport, insline, kbhit, lowvideo, movetext, normvideo, outport, putch, puttext, _setcursortype, textattr, textbackground, textcolor, textmode, ungetch, wherex, wherey, window,
Funcion: clreol()
Sintaxis:
void clreol(void);

Descripcion: Esta función despeja todos los caracteres desde la posición del cursor hasta el final de la línea dentro de la ventana de texto actual, sin mover la posición del cursor.


Ejemplo:
#include <conio.h>
#include <stdio.h>
 
int main() {
   clrscr();
   printf( "Ejemplo de \"clreol\"\n\n" );
   printf( "Esto es un mensaje\nescrito en varias l&iacute;neas.\n" );
   printf( "Usaremos \"gotoxy\"para colocar el cursor\n
   printf( "en una de estas l&iacute;neas, para borrarla.\n" );
   printf( "Pulsa una tecla para continuar...\n" );
   getch();
   gotoxy( 1, 4 );
   clreol();
   getch();
 
   return 0;
} 

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h