3 ms·
Agree. I've used "void main(void)" on embedded applications where 1. there is no OS under you. 2. it can never "exit" void main(void) { init(); for(;
by laichzeit0 14y ago
Agree. I've used "void main(void)" on embedded applications where 1. there is no OS under you. 2. it can never "exit"
void main(void) {
init();
for(;;) {
web_tick();
serial_tick();
tcp_tick();
etc.
}
}
An example is the horrible Dynamic C compiler from z-world (or digi as they are now called). Guys who complain about "violating standards" clearly haven't worked in diverse enough fields on broken, shitty and half-standard compilers ;)