Sujet : Re: do { quit; } else { }
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 04. Apr 2025, 21:48:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <8634enhcui.fsf@linuxsc.com>
References : 1
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
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.