| Deutsch English Français Italiano |
|
<vspbjh$8dvd$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Thiago Adams <thiago.adams@gmail.com>
Newsgroups: comp.lang.c
Subject: do { quit; } else { }
Date: Fri, 4 Apr 2025 16:23:30 -0300
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vspbjh$8dvd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 04 Apr 2025 21:23:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="26bb03f5d8244956539c851a3efacaaf";
logging-data="276461"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+z+l50jgwsSVtpmVx8J3P7xqw9CWpvM9Q="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/mYWQMuuWVrTd7xBqAJE8z0JJHo=
Content-Language: en-GB
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*/
}