man.bsd.lv manual page server

Manual Page Search Parameters

CURSES_FILEIO(3) Library Functions Manual CURSES_FILEIO(3)

curses_fileio, getwin, putwincurses file input/output routines

library “libcurses”

#include <curses.h>

WINDOW *
getwin(FILE *fp);

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

These functions read and write data to and from files.

The () function reads window data that has been stored in the file to which fp points, and then creates a new window using that data.

The () function writes window data from the window win to the file pointed to by fp.

The getwin() function returns one of the following values:

OK
The function completed successfully.
ERR
An error occurred in the function.

The putwin() function returns NULL if an error is detected.

curses_window(3), fread(3), fwrite(3)

Subwindows can not be created by the () function, nor written by the putwin() function.

The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification.

These functions first appeared in NetBSD 5.0.

March 31, 2008 NetBSD-9.2