HostIsLittleEndian
int HostIsLittleEndian (void);
Purpose
This function indicates if the host system uses the little endian memory layout. Networks typically use big endian memory layouts. Once you determine the host and network endianness, use the Endianness functions to convert to big endian or little endian as necessary.
Parameters
None.
Return Value
Name | Type | Description |
result | int | Returns a non-zero value if the system uses little endian memory layout. Otherwise, returns zero. |
Additional Information
Library: Programmer's Toolbox
Include file: toolbox\toolbox.h
LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later