httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject Re: Can we get rid of %qd?
Date Fri, 21 May 1999 13:46:51 GMT
Ralf S. Engelschall wrote:
> In article <> you wrote:
> > What does the 'q' qualifier mean/do ?
> >From sprintf(3):
>      o   The optional character q, specifying that a following d, i, o, u, x,
>          or X conversion corresponds to a quad int or unsigned quad int argu-
>          ment, or that a following n conversion corresponds to a pointer to a
>          quad int argument.
> Hmmm... but what to the hell is an "unsigned quad int"? On FreeBSD it's
> indirectly typedef'ed to a "unsigned long long". Hmmm....
> Additionally the code is in ``#if defined(BSD) && BSD > 199305'', so it
> affects only BSD platforms. Hmmm... nevertheless its ugly stuff. Any opinions?

But quads aren't ANSI, so we shouldn't be using them. If we _do_,
then we should be doing so on an OS by OS basis, but it's still

   Jim Jagielski   |||   |||
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

View raw message