Mailinglist Archive: opensuse-packaging (135 mails)

< Previous Next >
Re: [opensuse-packaging] Re: [opensuse-project] Procinfo and Procinfo-NG
  • From: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
  • Date: Thu, 23 Aug 2007 09:36:06 +0200 (CEST)
  • Message-id: <Pine.LNX.4.64.0708230935200.12788@xxxxxxxxxxxxxxxxxxxxxxxxx>

On Aug 23 2007 09:26, Andreas Jaeger wrote:
>
>I suggest to use:
>#include <inttypes.h>
>
>int
>main (void)
>{
>  int64_t var;
>
>  printf ( PRIi64, var);
>  ...
>}
>
>The PRT* macros from inttypes.h and the standard integer types from
><stdint.h> will do the magic for you,

Bwäh. printf("%llu", (unsigned long long)var); is much more readable 
and does not provide any surprises.



        Jan
-- 
< Previous Next >
Follow Ups
References