3.2.21. itoa

Converts an integer to a string.

Syntax:

char *itoa (iValue, str)
int iValue;
char *str;

where:

iValue

The integer value to be converted.

str

The converted string.

Description

This macro converts an integer value to the equivalent string.

Return value

char *

A pointer to the first character of the converted string.

Example

add char strValue[10]
cexpression itoa(10000,strValue)
printf "%s", strValue

See also

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