Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/25/03 14:30
Read: times


 
#55463 - mixed vartype buffer in C
I would like to work on a simple communication buffer array abBuf[6][7], that contains all kind of data (8 and 16bit and string) directly without type conversions etc.

Example: I have a 16byte variable X stored at abBuf[3][1] and abBuf[3][2]. The order (big endian) corresponds to a normal unsigned int variable. Is there a sort of elegant typecast or definition in C possible that would allow me to printf(%u,???) or use its value as 16bit variable in a formula etc besides the definition of a big union?

Werner

PS. I work with Keil C51 Version 7



List of 8 messages in thread
TopicAuthorDate
mixed vartype buffer in C            01/01/70 00:00      
   RE: mixed vartype buffer in C            01/01/70 00:00      
      RE: mixed vartype buffer in C            01/01/70 00:00      
   RE: mixed vartype buffer in C            01/01/70 00:00      
      RE: mixed vartype buffer in C            01/01/70 00:00      
         RE: mixed vartype buffer in C            01/01/70 00:00      
   RE: mixed vartype buffer in C            01/01/70 00:00      
   RE: mixed vartype buffer in C            01/01/70 00:00      

Back to Subject List