- words = strsplit(NULL, grab_file(NULL,
- argv[1] ? argv[1] : "/usr/share/dict/words",
- NULL), "\n");
- ht = htable_str_new();
- num = talloc_array_length(words) - 1;
+ words = tal_strsplit(NULL, grab_file(NULL,
+ argv[1] ? argv[1] : "/usr/share/dict/words"), "\n",
+ STR_NO_EMPTY);
+ htable_str_init(&ht);
+ num = tal_count(words) - 1;
+ /* Note that on my system, num is just > 98304, where we double! */