site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Well, when I read the fat_header, it gives following values: magic = 3199925962, (bebafeca) nfat_arch = 0 Since the no. of fat_archs is 0, how can I determine the version number in this case. $ hexdump -n 8 /usr/lib/libSystem.dylib 0000000 ca fe ba be 00 00 00 04 Remember that fat headers are always big endian. My high level goal is to find the version of the dynamic library when I m given its full path. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... At 14:45 +0530 11/4/08, anukriti_shrimal wrote: A value of zero for fat_archs is very unlikely. You're doing something wrong in your read code. Here's a typical example of a fat header: That's just a restatement of your original question. I was asking about /why/ you're trying to get this information. If I can understand what you're trying to do, I may be able to suggest a better approach (where "better" means "less code for you to write"). This email sent to site_archiver@lists.apple.com