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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/23/02 20:25
Read: times


 
#31329 - RE: How to access to each byte of data types

//Without union, you can do this:

float result;
unsigned char *ptr;

ptr = (unsigned char*)&result;

//subsequent bytes are accessed with
// *ptr, *(ptr + 1), *(ptr + 2), *(ptr + 3)
// or similarly

Regards,
Zbyszek



List of 5 messages in thread
TopicAuthorDate
How to access to each byte of data types            01/01/70 00:00      
RE: How to access to each byte of data types            01/01/70 00:00      
sorry, did not read fully            01/01/70 00:00      
RE: How to access to each byte of data types            01/01/70 00:00      
RE: How to access to each byte of data types            01/01/70 00:00      

Back to Subject List