Destructively writes the contents of win1 on win2. Format #include <curses.h> int overwrite (WINDOW *win1, WINDOW *win2);
1 – Arguments
win1 A pointer to the window. win2 A pointer to the window.
2 – Description
The overwrite function writes the contents of win1 that will fit onto win2 beginning at the starting coordinates of both windows. Blanks on win1 are written on win2 as blanks. This function copies as much of a window's box as possible.
3 – Return Values
OK Indicates success. ERR Indicates failure.