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