Could someone tell me what is wrong with this?
What i get on the lcd is nothing (null)Code:static byte response_string; static byte far far_response_string; _fstrncpy( far_response_string, "hi", 3 ); response_string = far_response_string; goto_lcd(0,1); sprintf( _temps, "%c", response_string ); puts_lcd( _temps );
I have a feeling that theline is copying it as a null.Code:response_string = far_response_string;
I've tried casting the far_response_string to a (byte) also but with the same problem, the scary thing is that the compiler doesn't complain. I would have expected a suspicious pointer conversion warning if it was a casting issue.