itoa'd you so?

Charles Curley charlescurley at
Fri Sep 21 15:50:34 MDT 2007

On Fri, Sep 21, 2007 at 02:59:05PM -0600, Dave Smith wrote:
> Steve wrote:

> Anyway, I revised my implementation today to not *need* a log10 function 
> by writing the ascii value into the *end* of the buffer, right-to-left, 
> least-significant to most-significant, and then it returns a pointer to 
> the beginning of the ascii string it creates. That way, I didn't need to 
> calculate the length of the string up front (or ever), and it cut my 
> runtime in half.

Ah, good. Did you finally get around to looking at the solution I
posted to this thread two days ago?


Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 

More information about the PLUG mailing list