ITOA(5)

Table of Contents

Name

itoa converts an integer to a string

Synopsis

STRING itoa(n)
int n;

Description

This component of the run-time library is a function that converts an integer to a string. itoa does not allocate new memory space for the string, but rather returns a pointer to the internal buffer where the conversion takes place. The function strsave (see STRSAVE(5) ) may be used to make a copy of the string. Because the unum function (see UNUM(5) ) uses itoa, it also returns a pointer to itoa's internal buffer.

The itoa function is provided by some standard C libraries, and omitted by others. A copy is provided in the ivy*meta SDTB library for those systems that don't.

Example

itoa(345)
returns «345"

See Also

STRSAVE(5)
UNUM(5)


© 1990 Lucent Technologies, Inc
© 1998 Harmony Software, Inc