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

    Date:        Thu, 24 Jun 2010 16:53:07 +0200
    From:        Ignatios Souvatzis <>
    Message-ID:  <>

  |     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.)


Home | Main Index | Thread Index | Old Index