|
CWB
|
Provides the definition of the cl_bswap32() function, which was used as a portable implementation of the ntohl() and htonl() macros in earlier CWB versions; still needed for explicit conversion to little-endian format. More...
Functions | |
| int | cl_bswap32 (int x) |
| Swaps the byte order of a integer. More... | |
Provides the definition of the cl_bswap32() function, which was used as a portable implementation of the ntohl() and htonl() macros in earlier CWB versions; still needed for explicit conversion to little-endian format.
| int cl_bswap32 | ( | int | x | ) |
Swaps the byte order of a integer.
This function is a portable bswap implementation allowing explicit conversion to little-endian format (by a combination of cl_bswap32() and htonl())
Note that this function will work correctly with 32bit and larger int data types.
| x | The integer whose bytes are to be reordered. |
Referenced by process_fd().
1.8.8