Am 08.08.2011 um 03:56 schrieb [email protected]:

>> Here's something I came up with, as a proof of concept for
>> getting rid of the backspace, which relies on the fact that
>> printf doesn't care if it had more arguments than it does
>> placeholders in the format string.
> 
> Though you can just forget it, as it won't work in all cases,
> unless you construct the output string one value at a time.
> 
> The bit I missed is that whilst printf  doesn't care about
> the number of args matching the placeholders, it has no way
> to know that it needs to throw one, or more, way.
> 
> Oh well, nice idea: shame about the implementation!

When I get you right, it would mean a recursive interpretation of the format 
string which was built so far. With the side effect that it would be hard to 
output a %d literally, as it would be seen as a format string for the following 
arguments.

-- Reuti


> -- 
> Kevin M. Buckley                                  Room:  CO327
> School of Engineering and                         Phone: +64 4 463 5971
> Computer Science
> Victoria University of Wellington
> New Zealand
> 
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to