#include <mit-copyright.h>
#include <ctype.h>
#include <moira.h>
+#include <string.h>
+#include <stdlib.h>
+#ifndef NULL
#define NULL 0
+#endif
#define hash_func(h, key) (key >= 0 ? (key % h->size) : (-key % h->size))
/* Create a hash table. The size is just a hint, not a maximum. */
free(h);
return((struct hash *) NULL);
}
- bzero(h->data, size * sizeof(char *));
+ memset(h->data, 0, size * sizeof(char *));
return(h);
}