[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Recommended format specifiers for size_t / ssize_t ?
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] Recommended format specifiers for size_t / ssize_t ? |
Date: |
Mon, 20 May 2019 13:54:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
For logging, I usually cast to (unsigned) int and use %u/%d.
Or if it could actually be large, then (unsigned) long long.
On 5/20/19 1:12 PM, Tim Rühsen wrote:
> Hi,
>
> since there are portability issues with %zu / %zd, what is the
> recommended way to print / log size_t / ssize_t type variables ?
>
> Regards, Tim
>
signature.asc
Description: OpenPGP digital signature