ULTOA(DOS) XENIX System V ULTOA(DOS)
Name
ultoa - Converts numbers to characters.
Syntax
#include <stdlib.h>
char *ultoa (value, string, radix);
unsigned long value;
char *string;
int radix;
Description
The ultoa function converts the digits of the given value to
a null-terminated character string and stores the result in
string. No overflow checking is performed. The radix
argument specifies the base of value. It must be in the
range 2-36.
Return Value
ultoa returns a pointer to string. There is no error
return.
See Also
itoa(DOS), ltoa(DOS)
Example
#include <stdlib.h>
int radix = 16; char buffer[40]; char *p; /* p will be
"501d9138 */ p = ultoa (1344115000L,buffer,radix);
Notes
The space allocated for string must be large enough to hold
the returned string. The function can return up to 33
bytes.
This call must be compiled with the -dos flag.
Page 1 (printed 8/7/87)