DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

form_field_buffer(S)


form_field_buffer: set_field_buffer, field_buffer, set_field_status, field_status, set_max_field -- set and get forms field attributes

Syntax

cc ... -lform -lcurses

#include <form.h>

int set_field_buffer(FIELD *field, int buf, char *value); char *field_buffer(FIELD *field, int buf); int set_field_status(FIELD *field, int status); int field_status(FIELD *field); int set_max_field(FIELD *field, int max);

Description

set_field_buffer(S) sets buffer buf of field to value. Buffer 0 stores the displayed contents of the field. Buffers other than 0 are application-specific and not used by the forms(S) library routines. field_buffer(S) returns the value of field buffer buf.

Every field has an associated status flag that is set whenever the contents of Field Buffer 0 changes. set_field_status(S) sets the status flag of field to status. field_status(S) returns the status of field.

set_max_field(S) sets a maximum growth on a dynamic field, or if max=0 turns off any maximum growth.

Return values

field_buffer( ) returns NULL on error.

field_status( ) returns TRUE or FALSE.

set_field_buffer( ), set_field_status( ) and set_max_field( ) return one of the following:

E_OK - The function returned successfully.
E_SYSTEM_ERROR - System error.
E_BAD_ARGUMENT - An argument is incorrect.

 E_OK            -  The function returned successfully.
 E_SYSTEM_ERROR  -  System error.
 E_BAD_ARGUMENT  -  An argument is incorrect.

Warning

The header file form.h automatically includes the header files eti.h and curses.h.

Files


/usr/lib/libform.a
the library

See also

curses(S), forms(S)

Standards conformance

set_field_buffer(S), field_buffer(S), set_field_status(S), field_status(S), and set_max_field(S) are not part of any currently supported standard; they were developed by UNIX System Laboratories, Inc. and are maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003