While trying to run the following commands, my program gets an illigal acess:

Code:
int temp4=0,temp5=0;
char *temp6=0;
while(temp4<500){
	rest(1);
	if(temp5<=10){
		temp5++;
	}
	if(temp5==11){
		*temp6++;
		char *temp7=temp6;
		textprintf(screen,font,0,0,15,temp7);
		temp5=0;
		}
		temp4++;
	}

	if(temp4==500){
		temp4=0;
	}
}
Thanks,
Campsoup1988