Date: Mon, 20 Mar 2017 13:03:31 +0100 From: Joerg Sonnenberger <jo...@bec.de> Message-ID: <20170320120331.ga19...@britannica.bec.de>
| On Mon, Mar 20, 2017 at 10:44:24AM +0000, Robert Elz wrote: | > Why is there no PRI[xd]OFF ? How are off_t's intended to be printed? | | %jd + cast to intmax_t. Yes, that one I knew - that's a generic solution to printing any random unknown integral type - and it's ugly - useful as a fallback though. If that was to be the general recommended solution, we'd have no need for almost any of the gazillion PRI[xd]TYPE #defines that exist now (PRIxPSIZE, PRIxVADDR, ...) off_t's are a common enough data type that we should support printing them without casts (IMO.) kre