Sun Java System Web Server 7.0 Update 2 NSAPI Developer's Guide

util_itoa() Function

The util_itoa function converts a specified integer to a string, and returns the length of the string. Use this function to create a textual representation of a number.

Syntax

int util_itoa(int i, char *a);

Return Values

The length of the string created.

Parameters

int i is the integer to be converted.

char *a is the ASCII string that represents the value. The user is responsible for the allocation and deallocation of a. The string should be at least 32 bytes long.