Re: How to determine the way data is stored in memory?
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Mon, 23 Jan 2006 10:07:44 +1300
Abhishek wrote:
Can you please lean to quote - how can someone explain a program if you don't quote it?can you please explain how can this program validate such an assumption?
The header provides a number of C99 typdefs for exact and inexact integer types, specifying the size in bits. So a uint32_t is a 32 bit unsigned int.
The program simply assigns 1 to a 32 bit int and tests to see if the first byte is 1, if so, you have a little endian machine.
Ian
-- Ian Collins. .
- Follow-Ups:
- Re: How to determine the way data is stored in memory?
- From: Gordon Burditt
- Re: How to determine the way data is stored in memory?
- References:
- How to determine the way data is stored in memory?
- From: Abhishek
- Re: How to determine the way data is stored in memory?
- From: gamehack
- Re: How to determine the way data is stored in memory?
- From: Abhishek
- How to determine the way data is stored in memory?
- Prev by Date: Re: strtok ( ) help
- Next by Date: Re: Endianness (again)
- Previous by thread: Re: How to determine the way data is stored in memory?
- Next by thread: Re: How to determine the way data is stored in memory?
- Index(es):