Re: [PATCH] init warning
> I hope I'm misremembering, but I'm pretty sure this is why you see a
> fair amount of code that takes pains to use macros for its integer
> formatters.
Ah, yes: see the PRI* macros in <inttypes.h>. (On Solaris this is in
<sys/int_fmtio.h>, which is sourced from <inttypes.h>.) These are the
portable way (in C99) to embed integer formatters in printf()-like
formats.
Of primary interest: PRId8, PRId16, PRId32, PRId64; PRIu8, PRIu16,
PRIu32, PRIu64. For example:
#if (SIZEOF_OFF_T == 8)
# define OFF_T_FMT PRId64
#else
# define OFF_T_FMT PRId32
#endif
printf("The offset is %" OFF_T_FMT ".\n", offset);
Does mutt support < C99? I don't remember.
--
-D. dgc@xxxxxxxxxxxx NSIT University of Chicago