1form_userptr(3X)                                              form_userptr(3X)
2
3
4

NAME

6       set_form_userptr, form_userptr - associate application data with a form
7       item
8

SYNOPSIS

10       #include <form.h>
11
12       int set_form_userptr(FORM *form, void *userptr);
13       void* form_userptr(const FORM *form);
14

DESCRIPTION

16       Every form and every form item has a field that can be used to hold ap‐
17       plication-specific  data  (that  is,  the  form-driver  code  leaves it
18       alone).  These functions get and set the form user pointer field.
19

RETURN VALUE

21       The function form_userptr returns a pointer (which may  be  NULL).   It
22       does not set errno.
23
24       The function set_form_userptr returns E_OK (success).
25

SEE ALSO

27       curses(3X), form(3X).
28

NOTES

30       The  header  file  <form.h>  automatically  includes  the  header  file
31       <curses.h>.
32

PORTABILITY

34       These routines emulate the System V forms library.  They were not  sup‐
35       ported on Version 7 or BSD versions.
36
37       The user pointer is a void pointer.  We chose not to leave it as a char
38       pointer for SVr4 compatibility.
39

AUTHORS

41       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
42       Raymond.
43
44
45
46                                                              form_userptr(3X)
Impressum