pr_htons.rst (420B)
1 PR_htons 2 ======== 3 4 Performs 16-bit conversion from host byte order to network byte order. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <prnetdb.h> 13 14 PRUint16 PR_htons(PRUint16 conversion); 15 16 17 Parameter 18 ~~~~~~~~~ 19 20 The function has the following parameter: 21 22 ``conversion`` 23 The 16-bit unsigned integer, in host byte order, to be converted. 24 25 26 Returns 27 ~~~~~~~ 28 29 The value of the ``conversion`` parameter in network byte order.