This: struct Vec3* v = malloc(sizeof(struct Vec3)); is better written as: struct Vec3 * const v = malloc(sizeof *v);
reply
It's not possible to know C code and think that
sizeof *v
sizeof v