|  |  
 |   |   
 NAMEarray - The array library interface SYNTAX#include <libowfat/array.h> DESCRIPTIONAn allocated array variable keeps track of 
 There are two other possibilities for the state of an array variable: unallocated and failed. In both cases, there is no dynamically allocated region of memory. A new array variable is normally created as a static variable: 
   
   At this point it is unallocated. The array library provides various allocation and inspection functions. A new array variable can also be created dynamically. It must be initialized to all-0, meaning unallocated, before it is given to any of the array functions. It must be returned to the unallocated (or failed) state, for example with array_reset, before it is destroyed. These rules prevent all memory leaks. Expansion and inspectionarray x; 
   
   
   
   
   Truncation and deallocationarray x; 
   
   
   
   Comparison array x;
   
   Concatenation array x;
   
   
   
   
   
   
   ORIGINAL API DEFINITIONhttp://cr.yp.to/lib/array.html SEE ALSOarray_get(3), array_start(3), array_fail(3) 
 |