sash_get(3)

NAME
sash_get, _sash_get, sash_exists - look up in a sash

SYNOPSIS
#include <hash.h>

#define sash_get(sash,key,value) _sash_get((sash),(key),&(value))
int _sash_get (sash, const char *key, const char **ptr);
#define sash_exists(sash,key) _sash_get ((sash), (key), 0)

DESCRIPTION

Get the value associated with key key and return true. If there is no value associated with key, this returns false and value is left unchanged.

sash_exists simply tests whether or not key exists in the sash. If so, it returns true, otherwise false.

AUTHOR
Richard Jones <rich@annexia.org>

LICENSE
GNU LGPL (see http://www.gnu.org/)

VERSION
c2lib-1.2.14