tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: top on machines with more than 9 CPUs
On Fri, Jun 25, 2010 at 06:59:04PM +0700, Robert Elz wrote:
> Date: Thu, 24 Jun 2010 16:53:07 +0200
> From: Ignatios Souvatzis <is%NetBSD.org@localhost>
> Message-ID: <20100624145307.GM12982%beverly.kleinbus.org@localhost>
>
> | const char *short_tag = !multi || ncpu <= 1 ? "CPU: " : "CPU%0*d";
>
> While I never understood why it should be so, I thought that the printf
> %0 stuff was supposed to be obsolete, and one was supposed to use the
> precision field instead. (I'm also not sure I would rely upon %0*
> working on all implementations.)
%0*d is supposed to work according to C99 and some C201x I stumbled upon,
so I don't think it's obsolete. What implementations do you suspect to
not implement '...%0*d",x,y)', but to implement '...%*.*d",x,x,y)' ?
Regards,
-is
--
seal your e-mail: http://www.gnupg.org/
Home |
Main Index |
Thread Index |
Old Index