Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Suggested method for returning a string from a C program?
Date: Sun, 23 Mar 2025 12:56:55 -0700
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <86wmcfjzaw.fsf@linuxsc.com>
References: <868qp1ra5f.fsf@linuxsc.com> <20250319115550.0000676f@yahoo.com> <20250319201903.00005452@yahoo.com> <86r02roqdq.fsf@linuxsc.com> <20250320165914.000030eb@yahoo.com> <20250320172922.00002a08@yahoo.com> <20250323110116.00002c02@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Sun, 23 Mar 2025 20:56:56 +0100 (CET)
Injection-Info: dont-email.me; posting-host="9d1f1f7cc6a206205b2fa56df000aacf";
logging-data="3198075"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gYeLgdAsfjrNGSZrvEmpYqLXcMqwXm5E="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:fxGBhR1nlm9JbrVDavNY3EyyITg=
sha1:PSwUe8sb7we9HhewrcCWd6ld928=
Bytes: 2165
Michael S writes:
> 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 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.
Absolutely.