On Sat, 19 Feb 2005, Hrvoje Niksic wrote:
[EMAIL PROTECTED] (Steven M. Schweda) writes:
2. Multiple functions like print_number_as_string() and print_second_number_as_string() (and so on?) look like a real pain to use.
They're just a hack to get multiple %s's to work. If you have a better idea of how to code them, feel free to suggest!
The Info-ZIP code uses one function with a ring of string buffers to ease the load on the programmer.
That makes sense. I assume the print function also receives an integer argument specifying the ring position?
The function can have a circular buffer with current free slot index, so the integer argument will not be necessary, and everything will work as long as the buffer is long enough to support "worst case".
