1 2 3 4 5 6 7 8 9 10 11 12 13
#include <string.h> struct Vec { float x, y, z; } v1, v2; void a(){ v1 = v2; } void b(){ memcpy(&v1, &v2, sizeof(struct Vec)); }