Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jul 1998 02:27:44 -0700 (PDT)
From:      Thomas Dean <tomdean@ix.netcom.com>
To:        uhlar@fantomas.sk
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: 64 bit integer
Message-ID:  <199807030927.CAA01940@ix.netcom.com>
In-Reply-To: <199807030810.KAA03251@fantomas.fantomas.sk> (uhlar@fantomas.sk)

next in thread | previous in thread | raw e-mail | index | archive | help
Are you asking if a user process can do math with 64-bit integers?
Read 'man printf' a bit more carefully:

     o   The optional character q, specifying that a following d, i, o, u, x,
         or X conversion corresponds to a quad int or unsigned quad int argu-
         ment, or that a following n conversion corresponds to a pointer to a
         quad int argument.

/*
  showLongLong.c
  */
#include <stdio.h>
main() {
  long long x;
  x = -2;
  printf("%d %qd %16qx\n",sizeof(x),x,x);
}

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



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