Teacup rim text: Difference between revisions

Content added Content deleted
m (C - simplified code)
m (Minor edit)
Line 145: Line 145:
if (teacup_words->len == len - 1) {
if (teacup_words->len == len - 1) {
printf("%s", word);
printf("%s", word);
g_hash_table_insert(found, g_strdup(word), NULL);
g_hash_table_add(found, g_strdup(word));
for (size_t i = 0; i < len - 1; ++i) {
for (size_t i = 0; i < len - 1; ++i) {
const char* teacup_word = g_ptr_array_index(teacup_words, i);
const char* teacup_word = g_ptr_array_index(teacup_words, i);