[ create a new paste ] login | about

Link: http://codepad.org/MjnqmZj1    [ raw code | fork ]

C, pasted on Oct 1:
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));
}


Create a new paste based on this one


Comments: