TIP: Click on subject to list as thread! ANSI
echo: cis.utilities
to: Bob van der Poel, 76510,2203 (X)
from: Ken Drexler 75126,3427
date: 1990-11-25 11:56:58
subject: #spell package

#: 8406 S9/Utilities
    25-Nov-90  11:56:58
Sb: #spell package
Fm: Ken Drexler 75126,3427
To: Bob van der Poel, 76510,2203 (X)

Bob,

I have been using your improved spell checker in my law office. It is a great
inprovement on Eric Williams original. After getting used to the old checker,
its is a flash!

Recently I tried to add words to the dictionary and ran into a problem with
dicmerge.  When it ran it correctly merged the two files until file2 ran out.
At that point the program as written stopped copying words from file1 to the
output file. The result is that the output file ends after the last word of
file2.

The problem seemed to be in the exit conditions on the while loop. In order to
fix this, I revised the while contidion to depend only on the lack of eof on
file1 and add a flag which is set when there is an eof on file2. Once the flag
is set, all of file1 will be copied to the output.

I have uploaded the revised dicmerge.c and asked sysop to forward it to you for
your use or posting. It is not a perfect solution because it depends on file2
running out first. I could not think of a way to have it handle eof on either
file easily.

Ken Drexler



There are 2 Replies.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.