Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 1999 12:37:15 -0500 (CDT)
From:      Jonathan Lemon <jlemon@americantv.com>
To:        imp@village.org, hackers@freebsd.org
Subject:   Re: quad_t and portability 
Message-ID:  <199908071737.MAA21477@free.pcs>
In-Reply-To: <local.mail.freebsd-hackers/199908070635.AAA07960@harmony.village.org>
References:  <local.mail.freebsd-hackers/Pine.BSF.4.10.9908070138180.9444-100000@janus.syracuse.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <local.mail.freebsd-hackers/199908070635.AAA07960@harmony.village.org> you write:
>In message <Pine.BSF.4.10.9908070138180.9444-100000@janus.syracuse.net> "Brian F. Feldman" writes:
>: You can always use off_t with "%qd", (int64_t)foo.
>
>But that isn't portbale.  %qd is a bsdism.  %lld and %llu are the
>latest C standards way to say that.

Still isn't portable.  DEC Alphas use "%ld", and don't know about "%lld".

I've resorted to doing something like: printf("64-bit:"QF"\n"), where QF
is the appropriate specifier for the system. (%qd, %lld, %ld).
--
Jonathan


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908071737.MAA21477>