summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_ntohs.rst
blob: a20c9d28510470eac992d42864aa3570ab8479a5 (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_ntohs
========

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


Syntax
------

.. code::

   #include <prnetdb.h>

   PRUint16 PR_ntohs(PRUint16 conversion);


Parameter
~~~~~~~~~

The function has the following parameter:

``conversion``
   The 16-bit unsigned integer, in network byte order, to be converted.


Returns
~~~~~~~

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