Re: print 64bit-integer
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Tue, 12 May 2009 06:11:06 +0000
jameskuyper said:
jacob navia wrote:
Richard Heathfield wrote:
<snip>
Until C99 becomes as widely available as C90 currently is, I
stick to programming in their common subset, and therefore I
don't claim to have a huge amount of C99-specific experience.
This is OFF TOPIC
The unavailability of C99 is entirely on topic here, as are
appropriate ways to deal with that unfortunate fact. Even claims
that it's not a fact are on-topic here, as you should well no from
extensive discussions you yourself contributed heavily to.
Thank you, James. Incidentally, I just looked at the peren.com C99
validation list (which lists compilers from IBM and Sun and
libraries such as Dinkumware). It doesn't seem to have grown very
much over the last five or six years.
I was vaguely aware of the PRIxN stuff, but a quick search for
PRId64 yielded no hits,
What a lie!
He's terribly free with that word, isn't he? What a boz (tm)!
Just type
PRId64
in google and you obtain 1000 hits!
Yes, ONE THOUSAND hits. And then heathfield says
"yielded no hits"
RH didn't say where he searched. What makes you think he searched
using google? For this kind of question, I don't see any reason
why he would search anything other than some version of the C
standard. A google search could easily pick up a thousand hits for
a popular but non-standard extension - why waste time with that,
when the question is about what the standard itself says?
I searched n1256.pdf for PRId64, just like he probably did,
Actually, I searched ISO_C99.txt, the result of pdftotexting the C99
Standard I bought back in 2000, but in essence you are correct. Why
Jacob Navia thinks a Google search would be even remotely relevant
to what the C Standard says about the existence of PIRd64 is beyond
me.
and
got no results, just like he did. The difference was that I'm a
lot more familiar with C99 than he is,
Yup.
so I knew that PRId64 was
in fact valid. I furthermore had a vague memory that the relevant
parts of the standard didn't actually use the exact bit sizes, but
a variable fill- in of some kind. Therefore, I searched for PRId,
and found PRIDN in 7.8.1p2, just as Richard probably did when he
went back the second time.
Actually, when I re-searched, I found PRIdN in 7.8.1p2. But the
principle is sound. :-)
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- References:
- Re: print 64bit-integer
- From: Richard Heathfield
- Re: print 64bit-integer
- From: Chris McDonald
- Re: print 64bit-integer
- From: James Kuyper
- Re: print 64bit-integer
- From: Chris McDonald
- Re: print 64bit-integer
- From: James Kuyper
- Re: print 64bit-integer
- From: Richard Heathfield
- Re: print 64bit-integer
- From: jacob navia
- Re: print 64bit-integer
- From: jameskuyper
- Re: print 64bit-integer
- Prev by Date: Re: Singly Linked List in C
- Next by Date: Re: Help on pointer to structures!
- Previous by thread: Re: print 64bit-integer
- Next by thread: Re: print 64bit-integer
- Index(es):
Relevant Pages
|
Loading