Go to main content

man pages section 3: Curses Library Functions

Exit Print View

Updated: Thursday, June 13, 2019
 
 

dupwin(3XCURSES)

Name

dupwin - duplicate a window

Synopsis

cc [ flag... ] file... –I /usr/xpg4/include –L /usr/xpg4/lib \
–R /usr/xpg4/lib –lcurses [ library... ]

c89 [ flag... ] file... –lcurses [ library... ]
 
#include <curses.h>

WINDOW *dupwin(WINDOW *win);

Description

The dupwin() function creates a duplicate of window win. A pointer to the new window structure is returned.

Parameters

win

Is a pointer to the window that is to be duplicated.

Return Values

On success, this function returns a pointer to new window structure; otherwise, it returns a null pointer.

Errors

None.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Unsafe
Standard

See Also

delwin(3XCURSES), derwin(3XCURSES), libcurses(3XCURSES), attributes(7), standards(7)