RAD Studio |  |

clreol

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.

Note: This function should not be used in Win32 GUI applications.
Return Value

None.

Example

Copy Code

    #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++
| + |  |

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!