To get machine type (ppc, intel)
To get machine type (ppc, intel)
- Subject: To get machine type (ppc, intel)
- From: Nick Rogers <email@hidden>
- Date: Wed, 19 Mar 2008 19:44:50 +0530
Hi,
In my app I'm reading raw bytes from the file.
So to get a integer's correct value, I'll need to swap bytes
according to the machine (big or little-endian type), I guess.
Is there a way so that I can know, if its a intel or ppc machine,
that my app is running on?
Thanks,
Nick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden