Admin Production ni-theme
Current Publication

ToBigEndian16

LabWindows/CVI

ToBigEndian16

unsigned short ToBigEndian16 (unsigned short number);

Purpose

This function changes the endianess of the input number to big endian layout. Because networks typically use big endian memory layouts, use this function to convert to network byte-order.

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