Add to git.
[c2lib.git] / doc / sash_get.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>sash_get</title>
6 </head>
7 <body>
8
9 <h1 align=center>sash_get</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:58:20 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 sash_get, _sash_get, sash_exists - look up in a sash</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;hash.h&gt;
35
36 #define sash_get(sash,key,value) _sash_get((sash),(key),&amp;(value))
37 int _sash_get (sash, const char *key, const char **ptr);
38 #define sash_exists(sash,key) _sash_get ((sash), (key), 0)
39 </b></pre></td></table>
40 <a name="DESCRIPTION"></a>
41 <h2>DESCRIPTION</h2>
42
43 <table width="100%" border=0 rules="none" frame="void"
44        cols="2" cellspacing="0" cellpadding="0">
45 <tr valign="top" align="left">
46 <td width="10%"></td><td width="90%">
47 Get the <b>value</b> associated with key <b>key</b> and
48 return true. If there is no <b>value</b> associated with
49 <b>key</b>, this returns false and <b>value</b> is left
50 unchanged.</td></table>
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 <b>sash_exists</b> simply tests whether or not <b>key</b>
57 exists in the sash. If so, it returns true, otherwise
58 false.</td></table>
59 <a name="AUTHOR"></a>
60 <h2>AUTHOR</h2>
61
62 <table width="100%" border=0 rules="none" frame="void"
63        cols="2" cellspacing="0" cellpadding="0">
64 <tr valign="top" align="left">
65 <td width="10%"></td><td width="90%">
66 Richard Jones &lt;rich@annexia.org&gt;</td></table>
67 <a name="LICENSE"></a>
68 <h2>LICENSE</h2>
69
70 <table width="100%" border=0 rules="none" frame="void"
71        cols="2" cellspacing="0" cellpadding="0">
72 <tr valign="top" align="left">
73 <td width="10%"></td><td width="90%">
74 GNU LGPL (see http://www.gnu.org/)</td></table>
75 <a name="VERSION"></a>
76 <h2>VERSION</h2>
77
78 <table width="100%" border=0 rules="none" frame="void"
79        cols="2" cellspacing="0" cellpadding="0">
80 <tr valign="top" align="left">
81 <td width="10%"></td><td width="90%">
82 c2lib-1.2.13</td></table>
83 <hr>
84 </body>
85 </html>