static char sccsid
[] = "@(#)spellin.c 4.1 %G%";
/* add entries to hash table for use by spell
preexisting hash table is first argument
words to be added are standard input
if no hash table is given, create one from scratch
"spellin: cannot initialize hash table\n");
while (fgets(word
, sizeof(word
), stdin
)) {
for (wp
= word
, h
= 0, lp
= pow2
[i
];
(j
= *wp
) != '\0'; ++wp
, ++lp
)
freopen((char *)NULL
, "wi", stdout
);
if (fwrite((char *)tab
, sizeof(*tab
), TABSIZE
, stdout
) != TABSIZE
) {
"spellin: trouble writing hash table\n");