On 04/08/06 00:04 -0700, Manoj Bohara wrote:
Hello everybody ,
I am porting an application from hp-ux to red hat enterprise linux 3.0 .
in one of the source codes there is this conversion done of a decimal number to a number with a given base . which is called the string representation of the decimal number . the function is ltoastr .
Does it handle a random base? Or only specific cases? Implementing one is trivial. For conversion to base 16, use sprintf(3).
*wonders why people would actually spend more time asking about base conversion functions when those are trivial to write*.
Devdas Bhagat