I need help with this. It has been awhile since I coded in c.
unsigned char test=0x00;
char tmp[20]; //reserve 20 bytes for string
switch(test)
{
case 0x00: tmp="Hello String 0";
break;
case 0x01: tmp="Hello String 0";
break;
case 0x0F: tmp="Hello String 0";
}
All I want to do is put a string value into a character array variable. Everything that I try just gives me error "incompatible types in assignment".