Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10947041094704 NET_UTIL_NET_TO_HOST_16() Anchor12651081265108Convert 16-bit integer values from network-order to CPU host- order.anchor10947061094706

Files

Anchor10947071094707net_util.h Anchor10947081094708

Prototype

HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
Anchor
11255211125521
Code Block

          NET_UTIL_NET_TO_HOST_16(val);

...

Arguments

...

val Anchor12614381261438

16-bit integer data value to convert.

...

Returned Value

...

16-bit integer value in CPU host-order. Anchor10947141094714

Required Configuration

...

10947151094715None. Anchor10947161094716

Notes / Warnings

...

For microprocessors that require data access to be aligned to appropriate word boundaries, val and any variable to receive the returned 16-bit integer must start on appropriately-aligned CPU addresses. This means that all 16-bit words must start on addresses that are multiples of 2 bytes.