]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - doc/html/man/form_field_new.3x.html
ncurses 5.9 - patch 20131221
[ncurses.git] / doc / html / man / form_field_new.3x.html
index 911c10712c97fc6532c603bbb36c72ec71292aa7..2c97459631975eca3987574a7fe5918e41fff877 100644 (file)
@@ -1,8 +1,8 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
 <!-- 
   * t
   ****************************************************************************
-  * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc.              *
+  * Copyright (c) 1998-2007,2010 Free Software Foundation, Inc.              *
   *                                                                          *
   * Permission is hereby granted, free of charge, to any person obtaining a  *
   * copy of this software and associated documentation files (the            *
@@ -28,7 +28,7 @@
   * sale, use or other dealings in this Software without prior written       *
   * authorization.                                                           *
   ****************************************************************************
-  * @Id: form_field_new.3x,v 1.12 2003/05/10 20:33:49 jmc Exp @
+  * @Id: form_field_new.3x,v 1.18 2010/12/04 18:40:45 tom Exp @
 -->
 <HTML>
 <HEAD>
        upper-left  corner,  column  of  upper-left corner, number
        off-screen rows, and number of additional working buffers.
 
-       The  function  <STRONG>dup_field</STRONG> duplicates a field at a new loca-
-       tion.  Most attributes (including current contents,  size,
-       validation  type, buffer count, growth threshold, justifi-
-       cation, foreground, background,  pad  character,  options,
-       and  user pointer) are copied.  Field status and the field
+       The function <STRONG>dup_field</STRONG> duplicates a field at a  new  loca-
+       tion.   Most attributes (including current contents, size,
+       validation type, buffer count, growth threshold,  justifi-
+       cation,  foreground,  background,  pad character, options,
+       and user pointer) are copied.  Field status and the  field
        page bit are not copied.
 
-       The function <STRONG>link_field</STRONG> acts like <STRONG>dup_field</STRONG>, but  the  new
-       field  shares  buffers with its parent.  Attribute data is
+       The  function  <STRONG>link_field</STRONG> acts like <STRONG>dup_field</STRONG>, but the new
+       field shares buffers with its parent.  Attribute  data  is
        separate.
 
-       The function <STRONG>free_field</STRONG>  de-allocates  storage  associated
+       The  function  <STRONG>free_field</STRONG>  de-allocates storage associated
        with a field.
 
 
 </PRE>
 <H2>RETURN VALUE</H2><PRE>
        The function, <STRONG>new_field</STRONG>, <STRONG>dup_field</STRONG>, <STRONG>link_field</STRONG> return <STRONG>NULL</STRONG>
-       on error.
-
-       The function <STRONG>free_field</STRONG> returns one of the following:
+       on error.  They set errno according to their success:
 
        <STRONG>E_OK</STRONG> The routine succeeded.
 
+       <STRONG>E_BAD_ARGUMENT</STRONG>
+            Routine  detected  an incorrect or out-of-range argu-
+            ment.
+
        <STRONG>E_SYSTEM_ERROR</STRONG>
-            System error occurred (see <STRONG>errno</STRONG>).
+            System error occurred, e.g., malloc failure.
+
+       The function <STRONG>free_field</STRONG> returns one of the following:
+
+       <STRONG>E_OK</STRONG> The routine succeeded.
 
        <STRONG>E_BAD_ARGUMENT</STRONG>
             Routine detected an incorrect or  out-of-range  argu-
             ment.
 
+       <STRONG>E_CONNECTED</STRONG>
+            field is connected.
+
 
 </PRE>
 <H2>SEE ALSO</H2><PRE>
        were not supported on Version 7 or BSD versions.
 
        It  may be unwise to count on the set of attributes copied
-       by  <STRONG><A HREF="dup_field.3x.html">dup_field(3x)</A></STRONG>  being  portable;  the  System  V  forms
-       library  documents  are  not very explicit about what gets
-       copied and what doesn't.
+       by <STRONG>dup_field</STRONG> being portable; the System  V  forms  library
+       documents are not very explicit about what gets copied and
+       what does not.
 
 
 </PRE>