Sujet : Re: do { quit; } else { }
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 15. Oct 2025, 22:04:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <10cp28o$3utuo$1@raubtier-asyl.eternal-september.org>
References : 1
User-Agent : Mozilla Thunderbird
No RAII ? Silly language !
Am 04.04.2025 um 21:23 schrieb Thiago Adams:
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*/
}