Subject: Re: %llu and %qu
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-misc
Date: 03/07/2000 09:29:10
Jun-ichiro itojun Hagino <itojun@iijlab.net> writes:
> 	in usr.bin/netstat, it looks %llu is preferred than %qu when we print
> 	u_quad_t items.  is there any strong reason for this?
> 	is %qu non-standard?

note also, the correct way to print u_quad_t items with %ll is to
_cast_ them to 'long long'.  i.e.


	u_quad_t foo;

	printf("%llu\n", (long long)foo);

u_quad_t is simply long on some architectures.


cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.