N
AME
low_mapping_lookup
- lookup a key in a mapping
S
YNTAX
#include "mapping.h"
struct svalue *low_mapping_lookup(struct mapping *m,
struct svalue *key);
D
ESCRIPTION
This function looks up the key-index pair that has the key 'key' in the mapping 'm' and returns a pointer to the 'value'. If no such key-index pair is found, zero is returned.
N
OTA
B
ENE
Any call to an internal Pike function may re-allocate the mapping 'm', which means that the pointer returned from this call is only valid until your next function call.
N
OTA
B
ENE
This function is intended for _reading_ mappings, it is forbidden to change the contents of the returned svalue.
K
EYWORDS
mapping
S
EE
A
LSO
map_insert