Deutsch   English   Français   Italiano  
<8634enhcui.fsf@linuxsc.com>

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

Path: ...!news.tomockey.net!news.samoylyk.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups: comp.lang.c
Subject: Re: do { quit; } else { }
Date: Fri, 04 Apr 2025 13:48:53 -0700
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <8634enhcui.fsf@linuxsc.com>
References: <vspbjh$8dvd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Fri, 04 Apr 2025 22:48:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0b7dfe457c74e7e4c87a6e88750aefc9";
	logging-data="434631"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/6RhrLfJcMbxUcs10xA13Hz5C/Ty2FNS8="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:eb27A4oPcpMWCOIvXU0nwbAt5Wc=
	sha1:xQOAn9ItlvheSm8j2dmFR5yKaEY=
Bytes: 1566

Thiago Adams <thiago.adams@gmail.com> writes:

>   What do you think of this control block?
>
>   do
>   {
>      FILE f = fopen("file.txt", "r");
>
>      if (f == NULL) quit; /*goes to else part*/
>
>      /*success here*/
>      for (int i =0; i < 10; i++){
>          ...
>          if (error) quit;
>      }
>
>   }
>   else
>   {
>      /*some error*/
>   }

I think it doesn't belong in comp.lang.c.

I also think you have been participating in comp.lang.c
long enough to know better.  Kindly take your language
fantasies somewhere else.