Hi.

I believe, from the point of view of the Standard, current
realization of main() function is callable.  Really, the
programmer can use the "return" operator to leave main()
function.  For example, it is possible and really works:

   int main() {
      if (foo()) return 1;
      for (;;) ;
   }

Yes, in this example the operator "return" is realized
with use of a "rjmp" command.  But it already outside of
the competence of the Standard.

Dmitry.



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to