projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
data1 cleanup
[idzebra-moved-to-github.git]
/
dict
/
open.c
diff --git
a/dict/open.c
b/dict/open.c
index
9597b86
..
a4f136a
100644
(file)
--- a/
dict/open.c
+++ b/
dict/open.c
@@
-1,10
+1,16
@@
/*
/*
- * Copyright (C) 1994-1999, Index Data
+ * Copyright (C) 1994-2002, Index Data
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: open.c,v $
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: open.c,v $
- * Revision 1.16 1999-05-26 07:49:13 adam
+ * Revision 1.18 2002-05-03 13:47:15 adam
+ * make checkergcc happy
+ *
+ * Revision 1.17 2000/12/05 09:59:10 adam
+ * Work on dict_delete_subtree.
+ *
+ * Revision 1.16 1999/05/26 07:49:13 adam
* C++ compilation.
*
* Revision 1.15 1999/05/15 14:36:37 adam
* C++ compilation.
*
* Revision 1.15 1999/05/15 14:36:37 adam
@@
-96,6
+102,7
@@
Dict dict_open (BFiles bfs, const char *name, int cache, int rw,
}
if (dict_bf_readp (dict->dbf, 0, &head_buf) <= 0)
{
}
if (dict_bf_readp (dict->dbf, 0, &head_buf) <= 0)
{
+ memset (dict->head.magic_str, 0, sizeof(dict->head.magic_str));
strcpy (dict->head.magic_str, DICT_MAGIC);
dict->head.last = 1;
dict->head.root = 0;
strcpy (dict->head.magic_str, DICT_MAGIC);
dict->head.last = 1;
dict->head.root = 0;
@@
-132,6
+139,11
@@
int dict_strcmp (const Dict_char *s1, const Dict_char *s2)
return strcmp ((const char *) s1, (const char *) s2);
}
return strcmp ((const char *) s1, (const char *) s2);
}
+int dict_strncmp (const Dict_char *s1, const Dict_char *s2, size_t n)
+{
+ return strncmp ((const char *) s1, (const char *) s2, n);
+}
+
int dict_strlen (const Dict_char *s)
{
return strlen((const char *) s);
int dict_strlen (const Dict_char *s)
{
return strlen((const char *) s);