?
=?iso-8859-1?q?Jos=E9_de_Paula?=
Is getopt() and its companions, commonly found in GNU libc and other
Unices libc, part of the C standard?
Another doubt: I have a switch inside a while loop; is there a way to
break out of the loop from the switch without using goto? I mean:
start:
while(chr = fgetc(inputfile))
{
switch(chr)
{
case 'a': case 'b':
do_one_stuff(chr);
break;
case 'c': case 'd':
do_some_other_stuff(chr);
break;
case 'e': case 'f':
do_stuff(chr);
break;
default:
goto start;
} /* end switch */
do_even_more_stuff_here();
} /* end while */
Is there a way to get out of the while (i.e., skipping the
"do_even_more_stuff_here();" part) without using this goto?
Thank in advance.
Unices libc, part of the C standard?
Another doubt: I have a switch inside a while loop; is there a way to
break out of the loop from the switch without using goto? I mean:
start:
while(chr = fgetc(inputfile))
{
switch(chr)
{
case 'a': case 'b':
do_one_stuff(chr);
break;
case 'c': case 'd':
do_some_other_stuff(chr);
break;
case 'e': case 'f':
do_stuff(chr);
break;
default:
goto start;
} /* end switch */
do_even_more_stuff_here();
} /* end while */
Is there a way to get out of the while (i.e., skipping the
"do_even_more_stuff_here();" part) without using this goto?
Thank in advance.