From 0d43d740e29e9a8eeb9236db5c40970158dd948b Mon Sep 17 00:00:00 2001 From: Thomas Arp Date: Mon, 14 Jan 2008 00:52:22 +0000 Subject: [PATCH] updated, non-tested version --- src/util/webster.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/util/webster.c b/src/util/webster.c index 737e54b..5c3d2f2 100755 --- a/src/util/webster.c +++ b/src/util/webster.c @@ -77,7 +77,8 @@ void parse_webster_html(char *arg) { strncpy(scanbuf, p, sizeof(scanbuf)); // strtok on a copy. p = strtok(scanbuf, ">"); // chop the line at the end of tags:
word becomes ""); // skip the rest of this tag. + while (1) { q = outline; @@ -93,7 +94,7 @@ void parse_webster_html(char *arg) { *q++='\0'; fprintf(outfile, "%s", outline); - if (!strncmp(p, "", 8)) + if (!strncmp(p, ""); @@ -104,7 +105,8 @@ void parse_webster_html(char *arg) { strncpy(scanbuf, p, sizeof(scanbuf)); // strtok on a copy. p = strtok(scanbuf, ">"); // chop the line at the end of tags:
word becomes "
" "" "word" - while (p != NULL) + p = strtok(NULL, ">"); // skip the rest of this tag. + while (1) { q = outline; @@ -118,7 +120,7 @@ void parse_webster_html(char *arg) { *q++='\0'; fprintf(outfile, "%s", outline); - if (!strncmp(p, "", 8)) + if (!strncmp(p, "");