Add to git.
[c2lib.git] / doc / vector_grep.3.html
1 <html>
2 <head>
3 <meta name="generator" content="groff -Thtml, see www.gnu.org">
4 <meta name="Content-Style" content="text/css">
5 <title>vector_grep</title>
6 </head>
7 <body>
8
9 <h1 align=center>vector_grep</h1>
10 <a href="#NAME">NAME</a><br>
11 <a href="#SYNOPSIS">SYNOPSIS</a><br>
12 <a href="#DESCRIPTION">DESCRIPTION</a><br>
13 <a href="#AUTHOR">AUTHOR</a><br>
14 <a href="#LICENSE">LICENSE</a><br>
15 <a href="#VERSION">VERSION</a><br>
16
17 <hr>
18 <!-- Creator     : groff version 1.17.2 -->
19 <!-- CreationDate: Fri May  3 14:59:00 2002 -->
20 <a name="NAME"></a>
21 <h2>NAME</h2>
22 <table width="100%" border=0 rules="none" frame="void"
23        cols="2" cellspacing="0" cellpadding="0">
24 <tr valign="top" align="left">
25 <td width="10%"></td><td width="90%">
26 vector_grep - produce a new vector containing elements of the old vector which match a boolean function</td></table>
27 <a name="SYNOPSIS"></a>
28 <h2>SYNOPSIS</h2>
29
30 <table width="100%" border=0 rules="none" frame="void"
31        cols="2" cellspacing="0" cellpadding="0">
32 <tr valign="top" align="left">
33 <td width="10%"></td><td width="90%">
34 <pre><b>#include &lt;vector.h&gt;
35
36 vector vector_grep (pool, vector v, int (*match_fn) (const void *));
37 </b></pre></td></table>
38 <a name="DESCRIPTION"></a>
39 <h2>DESCRIPTION</h2>
40
41 <table width="100%" border=0 rules="none" frame="void"
42        cols="2" cellspacing="0" cellpadding="0">
43 <tr valign="top" align="left">
44 <td width="10%"></td><td width="90%">
45 This macro calls <b>match_fn(&amp;t)</b> for each element
46 <b>t</b> of vector <b>v</b>. It constructs and returns a new
47 vector containing all those elements where the function
48 returns true.</td></table>
49 <a name="AUTHOR"></a>
50 <h2>AUTHOR</h2>
51
52 <table width="100%" border=0 rules="none" frame="void"
53        cols="2" cellspacing="0" cellpadding="0">
54 <tr valign="top" align="left">
55 <td width="10%"></td><td width="90%">
56 Richard Jones &lt;rich@annexia.org&gt;</td></table>
57 <a name="LICENSE"></a>
58 <h2>LICENSE</h2>
59
60 <table width="100%" border=0 rules="none" frame="void"
61        cols="2" cellspacing="0" cellpadding="0">
62 <tr valign="top" align="left">
63 <td width="10%"></td><td width="90%">
64 GNU LGPL (see http://www.gnu.org/)</td></table>
65 <a name="VERSION"></a>
66 <h2>VERSION</h2>
67
68 <table width="100%" border=0 rules="none" frame="void"
69        cols="2" cellspacing="0" cellpadding="0">
70 <tr valign="top" align="left">
71 <td width="10%"></td><td width="90%">
72 c2lib-1.2.13</td></table>
73 <hr>
74 </body>
75 </html>