开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜