C 言語関数:htonll サンプルコード

サンプルコードを検索した結果です。


TITLE : htons(), htonl(),ntohs(), ntohl()
Note that the types involved are 32-bit (4 byte, probably int) and 16-bit (2 byte, very likely short) numbers. 64-bit machines might have a htonll() for 64-bit ints, but I've not seen it. You'll just have to write your own........
http://beej.us/guide/bgnet/output/html/multipage/htonsman.html


TITLE : Kernel utilities
◆ byteorder_htonll().......
http://riot-os.org/api/group__core__util.html
TITLE : Kernel utilities
htonll().......
http://riot-os.org/api/group__core__util.html
TITLE : Kernel utilities
byteorder_htonll().......
http://riot-os.org/api/group__core__util.html
TITLE : Basic concepts on Endianness - CodeProject
One additional problem with the host-to-network APIs is that they are unable to manipulate 64-bit data elements. However, you can write your own ntohll() and htonll() corresponding functions:.......
http://www.codeproject.com/Articles/4804/Basic-concepts-on-Endianness
TITLE : Basic concepts on Endianness - CodeProject
#define htonll(x) ntohll(x).......
http://www.codeproject.com/Articles/4804/Basic-concepts-on-Endianness
Googleで検索

https://www.google.co.jp/#q=htonll