Q:

iphone sdk integer to network short and vice versa

Is there a way to convert an integer into a network short integer on the iphone? Also, how do I convert a network short to a host short. In c, it's htons and ntohs
Thanks

A:

You're programming in C on the iPhone. You can just use those functions.
There are also the CoreFoundation Byte-Order Utilities.

