swap_words man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

swap_lw_bytes(3)					      swap_lw_bytes(3)

Name
       swap_lw_bytes,  swap_word_bytes,	 swap_words  -	perform	 byte swapping
       operations

Syntax
       unsigned int swap_lw_bytes(buffer)
       unsigned int buffer;

       unsigned int swap_word_bytes(buffer)
       unsigned int buffer;

       unsigned int swap_words(buffer)
       unsigned int buffer;

Arguments
       buffer	 Specifies a 32-bit (4 bytes) quantity.

Description
       The routine performs a long word byte swap.   The  routine  performs  a
       short  word byte swap.  The routine performs a word byte swap.  Because
       Digital devices support the little endian model of byte ordering, there
       is a need for these byte swapping routines.

       For the purposes of the following discussion, a long word is equal to 4
       bytes; a short word is equal to 2 bytes; and 1 byte is equal to 8 bits.
       The  routine takes the 32-bit quantity specified by the buffer argument
       and swaps all four bytes.  The routine takes the 32-bit quantity speci‐
       fied by the buffer argument and swaps the individual bytes that make up
       each byte of the 32-bit quantity.  The routine takes the	 32-bit	 quan‐
       tity specified by the buffer argument and swaps the two words.

Return Values
       These routines return the result of the byte swapping.

							      swap_lw_bytes(3)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net