curl-users
Re: patch to enhance --progress-bar
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 23 Nov 2008 19:16:52 +0100 (CET)
Date: Sun, 23 Nov 2008 19:16:52 +0100 (CET)
On Sun, 23 Nov 2008, Dan Fandrich wrote:
> snprintf( outline, sizeof(outline), "%s%-*s %5.1f%%",
> bar->prefix, barwidth, line, percent );
>
> The * syntax seems to be pretty portable, although I haven't verified that
> it's part of C89 (I suspect it is).
Since we use the printf() family implementations from libcurl it should work
the same on all systems!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-11-23