Still buggy.
This commit is contained in:
@@ -26,10 +26,10 @@ int main(int argc, char **argv)
|
|||||||
return 0; /* no word/pid given */
|
return 0; /* no word/pid given */
|
||||||
}
|
}
|
||||||
pid = atoi(argv[2]);
|
pid = atoi(argv[2]);
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf),
|
snprintf(buf, sizeof(buf),
|
||||||
"wget http://www.thefreedictionary.com/%s"
|
"lynx -accept_all_cookies -source http://www.thefreedictionary.com/%s"
|
||||||
" -Owebster.html -o/dev/null", argv[1]);
|
" >webster.html", argv[1]);
|
||||||
system(buf);
|
system(buf);
|
||||||
|
|
||||||
parse_webster_html(argv[1]);
|
parse_webster_html(argv[1]);
|
||||||
@@ -55,7 +55,7 @@ void parse_webster_html(char *arg) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
unlink("webster.html"); /* We can still read */
|
// unlink("webster.html"); /* We can still read */
|
||||||
|
|
||||||
for ( ; get_line(infile, buf)!=0; ) {
|
for ( ; get_line(infile, buf)!=0; ) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user