ultoa

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

Library:LibC
Classification:Other
Service:General C Services

Syntax

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

Parameters

value

(IN) Specifies an unsigned long value.

buffer

(OUT) Points to the character array.

radix

(IN) Specifies the base notation to use when converting the integer.

Return Values

Returns the pointer to the result string.

Remarks

The ultoa function converts the unsigned long 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