"Michael Glickman" <[EMAIL PROTECTED]> wrote in message news:71401@palm-dev-forum... > For file read, you might need byte conversion. A similar > problem is for networking where standard solution is htons and htonl. > It might have a Palm equivalent. You might use this if you want a generic > solution.
The Palm OS API has NetHToNL, NetHToNS, NetNToHS, and NetNToHL macros (defined in NetMgr.h) for doing endian-conversion. Network format is always big-endian, so these macros are no-ops for 68K-based Palm OS programming. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
