integer to string conversion

Richard Wossal <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Hello everyone,

I was going to ask you about your opinion whether or not
the non-standard itoa-family of functions have a place in
dietlibc, when I discovered that the dietlibc features
__ltostr (and derivates). I've never seen that before,
Internet says they come from HP-UX.

Anyway, these functions do what I want but I dislike
the interface. I looked at what embutils uses for that
purpose and found that they use own versions called
fmt_ulong etc. with an interface more like the K&R 2
itoa.

Now what I would like is a function family in the
dietlibc that looks like the following:
         int itoa(int n, char *buf, int base)
returning the length of n in characters.

Do you think, a libc is the right place for those?
After all, they are not "less standard" than the
__ltostr functions, are they?
And (on a side note), why doesn't embutils use
__ltostr?

Thanks in advance from a slightly confused guy.

Richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.