Deutsch   English   Français   Italiano  
<vrdj4b$47cb$4@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 01:02:04 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vrdj4b$47cb$4@dont-email.me>
References: <vrd77d$3nvtf$2@dont-email.me>
 <87a59hvgyk.fsf@nosuchdomain.example.com> <vrdi0g$47cb$3@dont-email.me>
 <vrdifm$4n2o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 19 Mar 2025 06:02:04 +0100 (CET)
Injection-Info: dont-email.me; posting-host="92f16538b7b31d02767c6fdbe2b76261";
	logging-data="138635"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1880Zsm6/iypHXPLIAq0EIJ"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:JRzXGe0VU74QoRMW3JUDCBhf/VY=
In-Reply-To: <vrdifm$4n2o$1@dont-email.me>
Content-Language: en-US
Bytes: 1786

On 3/19/2025 12:51 AM, Richard Heathfield wrote:
> On 19/03/2025 04:42, DFS wrote:
>> Pretty easy fixes:
>>
>> 1 use scanf()
>> 2 update int to long
>> 3 handle special case of n = 1
>> 4 instead of collecting the results in a char variable, I print
>>    them as they're calculated
> 
> You've also fixed another glitch which may or may not have been 
> significant:
> 
> $ file post2.txt
> post2.txt: news, ASCII text
> 
> So wherever that UTF-8 came from, it's gone now.

Cool.  Thanks for looking at it.

Hey, how are your C book (from 2000) sales?  Thought about a new edition?

https://www.amazon.com/C-Unleashed-Richard-Heathfield/dp/0672318962