いろいろミス 以下修正

×構造体がポインタだった -> を使う
×struct { char* a; } foo;

○構造体がポインタだったら -> を使う
○struct foo { char* a; };