- { /* create header with information (page 0) */
- dict_bf_newp (dict->dbf, 0, &head_buf);
- dh = (struct Dict_head *) head_buf;
- strcpy(dh->magic_str, DICT_MAGIC);
- dh->free_list = dh->last = 1;
- dh->page_size = page_size;
- memcpy (&dict->head, dh, sizeof(*dh));
- }
- else
- { /* no header present, i.e. no dictionary at all */
- dict->head.free_list = dict->head.last = 0;
- dict->head.page_size = page_size;
- }
+ dict_bf_newp (dict->dbf, 0, &head_buf, page_size);