clreol

De RAD Studio
Aller à : navigation, rechercher

Remonter à Conio.h - Index


Header File

conio.h

Category

Console I/O Routines

Prototype

void clreol(void);

Description

Clears to end of line in text window.

clreol clears all characters from the cursor position to the end of the line within the current text window, without moving the cursor.

Remarque :  This function should not be used in Win32 GUI applications.

Return Value

None.

Example



 #include <conio.h>
 int main(void)
 {
    clrscr();
    cprintf("The function CLREOL clears all characters from the\r\n");
    cprintf("cursor position to the end of the line within the\r\n");
    cprintf("current text window, without moving the cursor.\r\n");
    cprintf("Press any key to continue . . .");
    gotoxy(14, 4);
    getch();
    clreol();
    getch();
    return 0;
 }



Portability



POSIX Win32 ANSI C ANSI C++

+