getwin(3curses)


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

Synopsis

cc [options] file -lcurses
#include <curses.h>

WINDOW *getwin(FILE *filep);

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

Description

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

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

Return value

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

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

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

scr_dump(3curses), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004