Sun Java System Web Server 6.1 SP12 NSAPI Programmer's Guide

util_itoa

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);

Returns

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, and it should be at least 32 bytes long.