The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


getwin, putwin - dump window to, and reload window from, a file


#include <curses.h>

WINDOW *getwin(FILE *filep);

int putwin(WINDOW *win, FILE *filep);


The getwin() function reads window-related data stored in the file by putwin(). The function then creates and initialises a new window using that data.

The putwin() function writes all data associated with win into the stdio stream to which filep points, using an unspecified format. This information can be retrieved later using getwin().


Upon successful completion, getwin() returns a pointer to the window it created. Otherwise, it returns a null pointer.

Upon successful completion, putwin() returns OK. Otherwise, it returns ERR.


No errors are defined.


scr_dump(), <curses.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]