Sujet : Re: Suggested method for returning a string from a C program?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 23. Mar 2025, 10:01:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250323110116.00002c02@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Thu, 20 Mar 2025 15:55:21 -0000 (UTC)
Muttley@DastardlyHQ.org wrote:
On Thu, 20 Mar 2025 17:29:22 +0200
Michael S <already5chosen@yahoo.com> wibbled:
>
Then how exactly do you printf value of type int64_t in a code that
expected to pass [gcc] compilation with no warnings on two platforms,
one of which is 64-bit Unix/Linux and another is just about anything
else?
Just use %llu everywhere. Warnings only matter if they're important
ones.
Unimportant warnings matter a lot, because they make seeing
important warnings so much harder.