2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH FORM_NEW 3CURSES "Dec 31, 1996"
9 form_new, new_form, free_form \- create and destroy forms
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lform\fR \fB -lcurses \fR [ \fIlibrary\fR... ]
16 \fBFORM *\fR\fBnew_form\fR(\fBFIELD **\fR\fIfields\fR);
21 \fBint\fR \fBfree_form\fR(\fBFORM *\fR\fIform\fR);
27 \fBnew_form()\fR creates a new form connected to the designated fields and
28 returns a pointer to the form.
31 \fBfree_form()\fR disconnects the \fIform\fR from its associated field pointer
32 array and deallocates the space for the form.
36 \fBnew_form()\fR always returns \fINULL\fR on error. \fBfree_form()\fR returns
44 The function returned successfully.
53 An argument is incorrect.
68 See \fBattributes\fR(5) for descriptions of the following attributes:
76 ATTRIBUTE TYPE ATTRIBUTE VALUE
84 \fBcurses\fR(3CURSES), \fBforms\fR(3CURSES), \fBattributes\fR(5)
88 The header \fB<form.h>\fR automatically includes the headers \fB<eti.h>\fR and