Note this thread started at https://www.avrfreaks.net/forum/... where a passing comment mentioned the possibility of using "functions within functions" in C. That triggered the following discussion...
Side note: I would strongly disrecommend gcc's "nested function" extension, I've seen horrible bugs caused by it, it's not well supported, and it's almost never a good design choice.