Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
How to implement a program to determine the endianness of a machine?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
ong khuan hwee
New Member
Join Date:
Jan 2011
Posts:
1
#1
How to implement a program to determine the endianness of a machine?
Jan 19 '11, 07:20 PM
How to implement a program to determine the endianness of a machine and explanation of the code?
horace1
Recognized Expert
Top Contributor
Join Date:
Nov 2006
Posts:
1510
#2
Jan 19 '11, 07:35 PM
you could use a union of int and unsigned chars, have alook at
Code Project
http://www.codeproject.com/KB/cpp/endianness.aspx
Code Project - For Those Who Code
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment