tester for createStruct.c