skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

genalloc.html (1495B)


      1 <html>
      2   <head>
      3     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      4     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      5     <meta http-equiv="Content-Language" content="en" />
      6     <title>skalibs: the genalloc library interface</title>
      7     <meta name="Description" content="skalibs: the genalloc library interface" />
      8     <meta name="Keywords" content="skalibs c unix genalloc library libstddjb" />
      9     <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
     10   </head>
     11 <body>
     12 
     13 <p>
     14 <a href="index.html">libstddjb</a><br />
     15 <a href="../libskarnet.html">libskarnet</a><br />
     16 <a href="../index.html">skalibs</a><br />
     17 <a href="//skarnet.org/software/">Software</a><br />
     18 <a href="//skarnet.org/">skarnet.org</a>
     19 </p>
     20 
     21 <h1> The <tt>genalloc</tt> library interface </h1>
     22 
     23 <p>
     24  The following functions are declared in the <tt>skalibs/genalloc.h</tt> header,
     25 and implemented in the <tt>libskarnet.a</tt> or <tt>libskarnet.so</tt> library.
     26 </p>
     27 
     28 <h2> General information </h2>
     29 
     30 <p>
     31  <tt>genalloc</tt> is the skalibs way of handling dynamic arrays, i.e.
     32 dynamically growing arrays of fixed-size objects. Any array that needs
     33 to be stored in heap memory can be implemented via genalloc.
     34 </p>
     35 
     36 <p>
     37  Most genalloc functions are just macro calls around
     38 <a href="stralloc.html">stralloc</a> functions.
     39 </p>
     40 
     41 <p>
     42  The <tt>genalloc.h</tt> header is actually very simple and the
     43 prototypes there are self-explaining.
     44 </p>
     45 
     46 </body>
     47 </html>