diff options
Diffstat (limited to 'ext/SDBM_File/sdbm/pair.c')
-rw-r--r-- | ext/SDBM_File/sdbm/pair.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/SDBM_File/sdbm/pair.c b/ext/SDBM_File/sdbm/pair.c index a9a805a4aa..d03bfb30a7 100644 --- a/ext/SDBM_File/sdbm/pair.c +++ b/ext/SDBM_File/sdbm/pair.c @@ -102,6 +102,17 @@ getpair(char *pag, datum key) return val; } +int +exipair(char *pag, datum key) +{ + register short *ino = (short *) pag; + + if (ino[0] == 0) + return 0; + + return (seepair(pag, ino[0], key.dptr, key.dsize) != 0); +} + #ifdef SEEDUPS int duppair(char *pag, datum key) |