]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/html/mitem_new.3x.html
ncurses 4.2
[ncurses.git] / Ada95 / html / mitem_new.3x.html
index 54e4b03053047894d4cbf55c0e383ce637e53791..b2f5b020b1472a575176139653a39af51c1a0b4e 100644 (file)
 </PRE>
 <H2>DESCRIPTION</H2><PRE>
        The function <STRONG>new_item</STRONG> allocates a new item and initializes
-       it from the <STRONG>name</STRONG> and <STRONG>description</STRONG> pointers.
-       The function <STRONG>free_item</STRONG> de-allocates an item.
+       it  from  the <STRONG>name</STRONG> and <STRONG>description</STRONG> pointers. Please notice
+       that the item stores only the pointers  to  the  name  and
+       description. Those pointers must be valid during the life-
+       time of the item. So you  should  be  very  carefull  with
+       names  or descriptions allocated on the stack of some rou-
+       tines.
+       The function <STRONG>free_item</STRONG> de-allocates an item. Please notice
+       that  it  is  the  responsibility  of  the  application to
+       release the memory for the name or the description of  the
+       item.
 
 
 </PRE>
        Juergen Pfeifer.  Manual  pages  and  adaptation  for  new
        curses by Eric S. Raymond.
 
-
-
-
-
-
-
-
-
 </PRE>
 </BODY>
 </HTML>