1getwin(3XCURSES)        X/Open Curses Library Functions       getwin(3XCURSES)
2
3
4

NAME

6       getwin, putwin - read a window from, and write a window to, a file
7

SYNOPSIS

9       cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
10        -R  /usr/xpg4/lib  -lcurses  [ library... ]
11
12       c89 [ flag... ] file... -lcurses [ library... ]
13
14       #include <curses.h>
15
16       WINDOW *getwin(FILE *filep);
17
18
19       int putwin(WINDOW *win, FILE *filep);
20
21

DESCRIPTION

23       The  getwin()  function  reads  window-related data (written earlier by
24       putwin()) from the stdio stream pointed to by filep.  It  then  creates
25       and initializes a new window using that data.
26
27
28       The  putwin()  function  writes all the data associated with the window
29       pointed to by win to the stdio stream pointed to by filep. The getwin()
30       function can later retrieve this data.
31

PARAMETERS

33       filep    Is a pointer to a stdio stream.
34
35
36       win      Is a pointer to a window.
37
38

RETURN VALUES

40       On  success,  the getwin() function returns a pointer to the new window
41       created. Otherwise, it returns a null pointer.
42
43
44       On success, the putwin() function returns  OK.  Otherwise,  it  returns
45       ERR.
46

ERRORS

48       None.
49

ATTRIBUTES

51       See attributes(5) for descriptions of the following attributes:
52
53
54
55
56       ┌─────────────────────────────┬─────────────────────────────┐
57       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │Interface Stability          │Standard                     │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │MT-Level                     │Unsafe                       │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       libcurses(3XCURSES), scr_dump(3XCURSES), attributes(5), standards(5)
66
67
68
69SunOS 5.11                        5 Jun 2002                  getwin(3XCURSES)
Impressum