Admin Production ni-theme
Current Publication

ToOtherEndian16

LabWindows/CVI

ToOtherEndian16

unsigned short ToOtherEndian16 (unsigned short number);

Purpose

This function changes the endianess of the input number between little and big endian layouts.

Parameters

Input
Name Type Description
number unsigned short Pass the number whose endianess you want to change.

Return Value

Name Type Description
result unsigned short Returns the converted number. Returns zero if the system is using neither little nor big endian layout.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later