#include <curses.h>
The dupwin() function creates a duplicate of window win. A pointer to the new window structure is returned.
On success, this function returns a pointer to new window structure; otherwise, it returns a null pointer.
None.
delwin(3XCURSES), derwin(3XCURSES)