ultoa()

Converts an unsigned long value to a null terminated character string.

  #include <extras/extras_stdlib.h>
  
  char * ultoa(unsigned long val, char *str, int radix);    
Parameter

val

The integer value to convert

str

A pointer to the string to store the converted value.

radix

The numeric base to convert the number to.

Remarks

The radix is the base of the number in a range of 2 to 36. This function is the converse of strtoul().

The function returns a pointer to the converted string, str.

This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.