On Mon, Feb 20, 2012 at 3:48 AM, Csaba Raduly wrote: > On Sun, Feb 19, 2012 at 1:29 AM, Mark Geisert wrote: >> >> 4. You've coded functions nested inside main(). I haven't seen that practice >> in C language before but apparently it works. Color me impressed. > > It's a non-portable GCC extension: > > http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html#Nested-Functions >
An idea borrowed from other languages that allow it. Using "non-portable" and in this case non-standard methods for C is not advisable. Those coming after you will curse your name. Standardization is one key to maintainability. -- Earnie -- https://sites.google.com/site/earnieboyd -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple