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