Erase the contents of the window from the current cursor position to the end of the line on the specified window. The clrtoeol function acts on the stdscr window. Format #include <curses.h> int clrtoeol(); int wclrtoeol (WINDOW *win);
1 – Argument
win A pointer to the window.
2 – Return Values
OK Indicates success. ERR Indicates an error.