]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - doc/html/man/mitem_new.3x.html
ncurses 5.6 - patch 20080621
[ncurses.git] / doc / html / man / mitem_new.3x.html
index d36dd3dba8c29be6d70fcf62aadd784385a128bc..e069b12e74a03211618679138bf12b8120852a84 100644 (file)
@@ -2,7 +2,7 @@
 <!-- 
   * t
   ****************************************************************************
-  * Copyright (c) 1998,2003 Free Software Foundation, Inc.                   *
+  * Copyright (c) 1998-2003,2006 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: mitem_new.3x,v 1.8 2003/10/25 20:08:57 Jared.Yanovich Exp @
+  * @Id: mitem_new.3x,v 1.10 2006/11/04 18:16:36 tom Exp @
 -->
 <HTML>
 <HEAD>
 
 </PRE>
 <H2>RETURN VALUE</H2><PRE>
-       The function <STRONG>new_item</STRONG> returns <STRONG>NULL</STRONG> on error.
+       The function <STRONG>new_item</STRONG> returns  <STRONG>NULL</STRONG>  on  error.   It  sets
+       errno according to the function's failure:
+
+       <STRONG>E_BAD_ARGUMENT</STRONG>
+            Routine  detected  an incorrect or out-of-range argu-
+            ment.
+
+       <STRONG>E_SYSTEM_ERROR</STRONG>
+            System error occurred, e.g., malloc failure.
 
        The function <STRONG>free_item</STRONG> returns one of the following:
 
        <STRONG>E_OK</STRONG> The routine succeeded.
 
-       <STRONG>E_SYSTEM_ERROR</STRONG>
-            System error occurred (see <STRONG>errno</STRONG>).
-
        <STRONG>E_BAD_ARGUMENT</STRONG>
             Routine detected an incorrect or  out-of-range  argu-
             ment.
@@ -90,6 +95,9 @@
        <STRONG>E_CONNECTED</STRONG>
             Item is connected to a menu.
 
+       <STRONG>E_SYSTEM_ERROR</STRONG>
+            System error occurred (see <STRONG>errno</STRONG>).
+
 
 </PRE>
 <H2>SEE ALSO</H2><PRE>