On Mon, 10 Feb 2003, Marcus Börger wrote: > > > Have you looked at smart_strs? That's the way to go, if you > > want to get rid of nasty size calculations/checks and ugly > > memcpy calls. > > Basically spprintf was designed to be an easy replacement for > all the other sprintf derivates. But perhaps i should have used > the smart strings inside it. Maybe we wouldnt have the floating > point problem with more than 512 digits?
I don't know (haven't followed the thread -- what kind of fp implementation does have 512 digits?). If you can, please avoid such code as in the posted diff. smart_strs are just so much more convenient. The resulting code is also way more maintainable and less error prone. - Sascha -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php