nlSwap

endian swap a multibyte value

C Specification

NLushort nlSwaps(NLushort value)

NLulong nlSwapl(NLulong value)

NLfloat nlSwapf(NLfloat value)

NLdouble nlSwapd(NLdouble value)

Parameters

value

[in]Specifies the value to be swapped.

Description

nlSwap endian swaps a value as needed. The default byte order is big endian (network byte order), but it can be set to little endian with nlEnable or nlDisable.

Return values

The swapped value.

Error codes

none

See also

nlEnable,
nlDisable,
read/write packet buffer macros


Back to the HawkNL index page


Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!