Post subject: C++ Question: Convert from char[4] to uint32
Posted: Wed 09-20-2006 12:24PM
Colonel
Joined: Wed 08-24-2005 2:44PM Posts: 620
Source: EE Building
I'm trying to read data from binary files. I can do this easily, but it only stores data into a char*. I would like to take 4 chars, and convert them into an unsigned integer-they have the same length so it should be possible. 4chars=32bits=1 int.
Any ideas how?
_________________ It seems the white trash of the internet has arrived. http://rsaxvc.net
Users browsing this forum: No registered users and 8 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum