int cmpnum=0;
int base, curbase;
int m_n, m_ref, m_cmpnum, m_cmpsize;
- file_ptr_t word_index, data_index;
+ file_ptr_t word_index;
int entry_size;
short int this_index;
Short_Univ_Int indextmp;
*/
word_index = 0; /* The index of each word, 0..N */
- data_index = 0; /* The offset in the ref data pool of current entry */
while (scanf( "%s", word) > 0) {
/* Append string to word list */
if ((n=fputs( word, outfp )) <= 0)
if ((n=fwrite( indextmp, sizeof(Short_Univ_Int), 1, indexfp )) <= 0)
outerr(n);
- data_index += entry_size;
word_index++;
}