Leonid [EMAIL PROTECTED] writes:
Steven and Hrvoje,
wget-1.9.1 has a function number_to_string which is in fact a
home-made equivalent to printf () %ld.
Yes, but that function is merely an optimization used to avoid
frequent calls to sprintf(buf, %ld, num). Wget does in fact in many
places
Hrvoje,
Is your LFS patch available on the web? I was unsubscribed from
wget-patches due to bounces from my address and there is no web
archive (that I know of) of that list.
Yes. It is in http://software.lpetrov.net/wget-LFS/
Another bonus of using routines number_to_string and
It's not my program (obviously), but:
1. I'd say that code like if ( sizeof(number) == 8 ) should have
been a compile-time #ifdef rather than a run-time decision.
2. Multiple functions like print_number_as_string() and
print_second_number_as_string() (and so on?) look like a real pain