- struct hash *h;
-
- h = (struct hash *) malloc(sizeof(struct hash));
- if (h == (struct hash *) NULL)
- return((struct hash *) NULL);
- h->size = size;
- h->data = (struct bucket **) malloc(size * sizeof(char *));
- if (h->data == (struct bucket **) NULL) {
- free(h);
- return((struct hash *) NULL);