utoa

Converts an unsigned integer into the equivalent string in base notation.

Library:LibC
Classification:Other
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  char *utoa (
     unsigned int   value,   
     char          *buffer,   
     int            radix);
  

Parameters

value

(IN) Specifies an unsigned integer value.

buffer

(OUT) Points to the character array.

radix

(IN) Specifies a base radix notation.

Return Values

Returns a pointer to the result.

Remarks

The utoa function converts the unsigned integer value into the equivalent string in base radix notation, storing the result in the character array pointed to by buffer. A null-terminating character is appended to the result. The size of buffer must be at least 33 bytes when converting values in base 2.

See Also