Big/little endian

Eljay Love-Jensen eljay@adobe.com
Tue Sep 30 11:29:00 GMT 2003


Hi Krzysztof,

When you read a 16-bit value, use ntohs() function.

When you read a 32-bit value, use ntohl() function.

HTH,
--Eljay




More information about the Gcc-help mailing list