summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_htonl.rst
blob: 094c59ced83925a50c7f11649b23562d707cad92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PR_htonl
========

Performs 32-bit conversion from host byte order to network byte order.


Syntax
------

.. code::

   #include <prnetdb.h>

   PRUint32 PR_htonl(PRUint32 conversion);


Parameter
~~~~~~~~~

The function has the following parameter:

``conversion``
   The 32-bit unsigned integer, in host byte order, to be converted.


Returns
~~~~~~~

The value of the ``conversion`` parameter in network byte order.