Admin Production ni-theme
Current Publication

BinStrToUInt

LabWindows/CVI

BinStrToUInt

unsigned int BinStrToUInt (const char binaryString[], int *overflow);

Purpose

Converts a nul-terminated binary string to an unsigned integer value.

If the bytes in the nul-terminated string contain a valid binary representation of an unsigned integer value, this function returns the unsigned integer value. Otherwise, this function returns 0.

Parameters

Input
Name Type Description
binaryString const char[] A nul-terminated binary string.
Output
Name Type Description
overflow int An indicator that the value in the binary string was too large to fit in the datatype.

Return Value

Name Type Description
unsignedInt unsigned int If the bytes in the nul-terminated string contain a valid binary representation of an unsigned integer value, this function returns the unsigned integer value. Otherwise, this function returns 0.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 2009 and later