> I think using goto loops sometimes is good, depend on the use case. Obviously
> For example in spt.c: > > run: > notify_send(timers[i].cmt); > > for (timecount = 0; timecount < timers[i].tmr; timecount += > inc) sleep(1); > > if (++i >= LEN(timers)) i = 0; /* i infinal loop */ > goto run; > > I tried using for and while loop, the goto loop still looks a lot > better. for (i = N; ; i = (i + 1) % LEN(timers)) { for (timecount = 0; timecount < timers[i].tmr; timecount += inc) sleep(1); }