Deutsch   English   Français   Italiano  
<vrevhq$15bib$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: James Kuyper <jameskuyper@alumni.caltech.edu>
Newsgroups: comp.lang.c
Subject: Re: Suggested method for returning a string from a C program?
Date: Wed, 19 Mar 2025 13:40:10 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vrevhq$15bib$1@dont-email.me>
References: <vrd77d$3nvtf$2@dont-email.me> <868qp1ra5f.fsf@linuxsc.com>
 <vrdhok$47cb$2@dont-email.me> <864izpr3nk.fsf@linuxsc.com>
 <vreuhk$1asii$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 19 Mar 2025 18:40:12 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e4f050de588e721e4d9abd3183d5eb9f";
	logging-data="1224267"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19JcJSfqKjO9P3BzPbovbj/zMDnHoXIs7s="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qWVLj9NkdSAEI+CNC/UuzxEibYE=
Content-Language: en-US
In-Reply-To: <vreuhk$1asii$3@dont-email.me>
Bytes: 1590

On 3/19/25 13:23, DFS wrote:
....
>     int64_t n = 0, max = 0, thismax = 0;
....
>     printf("\nmax n = %lld reached at input = %d\n", max, input);
....
> You'll get compilation warnings about the printf specifier used with
> int64_t.

Not if you use the correct specifier:
#include <inttypes.h>
printf("\nmax n = %" PRId64 " reached at input = %d\n", max, input);