Miscellaneous Library Functions form_field_new(3X)
NAME
form_field_new - create and destroy form fields
SYNOPSIS
#include
FIELD *new_field(int height, int width,
int toprow, int leftcol, int offscreen, int nbuffers);FIELD *link_field(FIELD *field, int toprow, int leftcol);
int free_field(FIELD *field);
The function new_field allocates a new field and initializes
it from the parameters given: height, width, row of upper-
left corner, column of upper-left corner, number off-screen
rows, and number of additional working buffers.Most attributes (including current contents, size, valida-
tion type, buffer count, growth threshold, justification, foreground, background, pad character, options, and user pointer) are copied. Field status and the field page bit are not copied.The function free_field de-allocates storage associated with
a field. RETURN VALUEE_OK The routine succeeded.
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
The function free_field returns one of the following:
E_OK The routine succeeded.
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
E_CONNECTED
SunOS 5.10 Last change: 1Miscellaneous Library Functions form_field_new(3X)
field is connected.