Is there something wrong with my syntax? Won't compile, apparently because of line:
sizeof(node->sprouts) / sizeof(node)
above node
defined as follows:
typedef struct node
{
bool is_word;
struct node *sprout[27];
}
node;
// and error:
dictionary.c:96:42: error: expected ')'
cor_idx = sizeof(node->spro...
^
dictionary.c:96:37: note: to match this '('
cor_idx = sizeof(node->spro...
I've tried assinging sizeof(node->sprouts)
to a variable and declaring it as sizeof((*node).sprouts)
with no luck.
Thanks :)