Admin Production ni-theme
Current Publication

StrToULongLong

LabWindows/CVI

StrToULongLong

int StrToULongLong (const char string[], unsigned long long *unsignedIntegerValue);

Purpose

Attempts to convert a nul–terminated string to an unsigned 64-bit integer value.

If the bytes in the nul–terminated string contain a valid ASCII decimal representation of an unsigned 64-bit integer value, and there are no extraneous non–white–space characters in the string, this function returns 1. Otherwise, this function returns 0.

This function is similar to the C library strtoull function except in how extraneous characters are treated.

Parameters

Input
Name Type Description
string const char[] A nul–terminated string.
Output
Name Type Description
unsignedIntegerValue unsigned long long The unsigned 64-bit integer value represented by the characters in string.

If the characters in string are not a valid ASCII decimal representation of an unsigned 64-bit integer value, or there are extraneous characters, this parameter is not modified.

Return Value

Name Type Description
success int If the bytes in the nul–terminated string contain a valid ASCII decimal representation of an unsigned 64-bit integer value, and there are no extraneous non–white–space characters in the string, this function returns 1. Otherwise, this function returns 0.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 2009 and later