pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: C portability question
On Sun, May 11, 2008 at 07:49:58PM -0400, Steven M. Bellovin wrote:
> Anyway -- what is the portable way to printf an off_t, which is (of
> course) an opaque type. I could cast (var) to (long), but that's
> clearly wrong (and in fact loses data here for us).
If you can assume a C99 userland, %jd and cast to intmax_t.
Joerg
Home |
Main Index |
Thread Index |
Old Index