Deutsch   English   Français   Italiano  
<vrdhok$47cb$2@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: DFS <nospam@dfs.com>
Newsgroups: comp.lang.c
Subject: Re: Suggested method for returning a string from a C program?
Date: Wed, 19 Mar 2025 00:38:44 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vrdhok$47cb$2@dont-email.me>
References: <vrd77d$3nvtf$2@dont-email.me> <868qp1ra5f.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 19 Mar 2025 05:38:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="92f16538b7b31d02767c6fdbe2b76261";
	logging-data="138635"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18twSMczVAKMwZXTrSITHBV"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:FM6vg93SGdZjcGLvPSuBdkymMY4=
Content-Language: en-US
In-Reply-To: <868qp1ra5f.fsf@linuxsc.com>
Bytes: 1445

On 3/18/2025 11:07 PM, Tim Rentsch wrote:


> Have you thought about how large the value of 'n' can
> become inside the while() loop?

I was too smug in my first reply.  After Keith pointed out I needed to 
read from stdin, I submitted the code again and it passed some tests but 
  failed with 'OUTPUT LIMIT EXCEEDED' when n = 159487.

Updating int to long worked, and now I'm bona fide!

So thanks.