void swap(int* a, int* b) {

	int tmp;
	tmp = *a;
	*a = *b;
	*b = tmp;
}

int main(char* argv[], int argc){

	char * str = "abcdefg";
	char * cpy;

	int x = 10, y = 5;

	int len = strlen(str);

	cpy = (char *) malloc(++len, sizeof(char));
	
	while(*cpy++ = *str++);
	cpy-=len;
	str-=len;

	printf("\n\tstr is: %s\n", str);
	printf("\n\tcpy is: %s\n", cpy);

	printf("\n\n\tx is %d", x);
	printf("\n\n\ty is %d", y);

	swap (&x, &y);

	printf("\n\n\tx is %d", x);
	printf("\n\n\ty is %d", y);
	printf("\n\n");
}