3.2.3. atoul

Converts a string to an unsigned long.

Syntax:

unsigned long atoul (str)
char *str;

where:

str

The string to be converted.

Description

This macro converts a string of numbers to the equivalent unsigned long integer value.

Return value

The unsigned long integer value of the converted string.

Example

add char strValue[10]
cexpression strcpy(strValue,"-1")
printf "%u", atoul(strValue)

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0175K
Non-Confidential