09-15-05 11:05 PM
Hello,
I have code that I want to run almost forever. Is the following
code segment good, bad, or ugly?
int main ()
{
while ( 1 )
{
call1 ();
call2 ();
call3 ();
}
return (0);
}
Note : If I use -Wall option I get warnings about : the while (1)
and the return is never reached.
Also, sometimes a core is dumped when I control backslash out of it.
Thanks,
Christopher Lusardi
[ Post a follow-up to this message ]
|