From owner-freebsd-hackers Sat Aug 7 10:38:22 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sumatra.americantv.com (sumatra.americantv.com [208.139.222.227]) by hub.freebsd.org (Postfix) with ESMTP id 2DEF914E16 for ; Sat, 7 Aug 1999 10:38:20 -0700 (PDT) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id MAA12759; Sat, 7 Aug 1999 12:37:16 -0500 (CDT) Received: from free.pcs (free.PCS [148.105.10.51]) by right.PCS (8.8.5/8.6.4) with ESMTP id MAA21508; Sat, 7 Aug 1999 12:37:15 -0500 (CDT) Received: (from jlemon@localhost) by free.pcs (8.8.6/8.8.5) id MAA21477; Sat, 7 Aug 1999 12:37:15 -0500 (CDT) Date: Sat, 7 Aug 1999 12:37:15 -0500 (CDT) From: Jonathan Lemon Message-Id: <199908071737.MAA21477@free.pcs> To: imp@village.org, hackers@freebsd.org Subject: Re: quad_t and portability X-Newsgroups: local.mail.freebsd-hackers In-Reply-To: References: Organization: Architecture and Operating System Fanatics Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article you write: >In message "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