- NetBSD Manual Pages
FORMS(3) NetBSD Library Functions Manual FORMS(3)
Powered by man-cgi (2021-06-01).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
field_count, form_fields, move_field, set_form_fields -- form library
Curses Form Library (libform, -lform)
move_field(FIELD *field, int frow, int fcol);
set_form_fields(FORM *form, FIELD **fields);
The field_count() function returns the number of fields that are attached
to the given form, if the form argument passed is NULL then field_count()
will return -1. The function form_fields() will return a pointer to
array of attach fields for the given form, this array is not NULL termi-
nated, fields may be attached to the given form by calling
set_form_fields(). The fields argument in this function is a pointer to
a NULL terminated array of fields that will be attached to the form. If
there are already fields attached to the form then they will be detached
before the new fields are attached. The new fields given must not be
attached to any other form. The move_field() function will move the
given field to the location specified by frow and fcol.
Functions returning pointers will return NULL if an error is detected.
The functions that return an int will return one of the following error
E_OK The function was successful.
E_CONNECTED The field is connected to a form.
E_POSTED The form is currently posted to the screen.
E_BAD_ARGUMENT The function was passed a bad argument.
The header <form.h> automatically includes both <curses.h> and <eti.h>.
NetBSD 5.0 January 1, 2001 NetBSD 5.0