Admin Production ni-theme
Current Publication

ToBigEndian32

LabWindows/CVI

ToBigEndian32

unsigned int ToBigEndian32 (unsigned int 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 int Pass the number whose endianess you want to change.

Return Value

Name Type Description
result unsigned int 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