linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Glynn Clements <glynn.clements@virgin.net>
To: linux-c-programming@vger.kernel.org
Subject: Re: Howto print off_t
Date: Thu, 27 Jun 2002 21:54:56 +0100	[thread overview]
Message-ID: <15643.31648.958108.45171@cerise.nosuchdomain.co.uk> (raw)
In-Reply-To: <02062720242701.02594@localhost.localdomain>


Andrew Edmondson wrote:

> > > What is the best way to print an off_t variable. On a 32 bit machine
> > > you can print it with %ld and on a 64 bit machine you need to print
> > > it with %lld.
> >
> > On a 64-bit machine, "long" is probably 64 bits.
> >
> > > Do all implementations know about %lld?
> >
> > No.
> 
> 
> Technically no, but c99 defines long long with the modifier ll in conjunction 
> with d, i, o, u, x, X so %lld is valid and should be portable.

Well, portable to all C99-conforming implementations, which is
basically the same thing as "not portable".

-- 
Glynn Clements <glynn.clements@virgin.net>

  reply	other threads:[~2002-06-27 20:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-26 21:30 Howto print off_t Holger Kiehl
2002-06-27  6:09 ` Glynn Clements
2002-06-27 19:24   ` Andrew Edmondson
2002-06-27 20:54     ` Glynn Clements [this message]
2002-06-27 19:43   ` Holger Kiehl
2002-06-27 21:18     ` Glynn Clements
2002-06-28  5:00       ` Holger Kiehl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15643.31648.958108.45171@cerise.nosuchdomain.co.uk \
    --to=glynn.clements@virgin.net \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).