Subject: Re: %llu and %qu
To: None <tech-misc@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-misc
Date: 03/02/2000 11:15:02
In article <5326.951995061@lychee.itojun.org>,
Jun-ichiro itojun Hagino <itojun@iijlab.net> wrote:
>
>	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?
>
>	i'm curious because freebsd2 has broken %llu support (%llu will be
>	treated as %lu) and would like to find the most portable way to
>	print u_quad_t.

%llu is the `sanctioned' way. If you use %qu, you'll fix it for FreeBSD
and break it for Solaris...

christos