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 ntoh开发者_C百科s
Thanks
You're programming in C on the iPhone. You can just use those functions.
There are also the CoreFoundation Byte-Order Utilities.
精彩评论