The following link mentions that nested functions do not exist in C
In following file function mini_vsnprintf has nested functions
https://github.com/mludvig/mini-printf/blob/master/mini-printf.c
Q: Do nested functions really exist in C?
The following link mentions that nested functions do not exist in C
In following file function mini_vsnprintf has nested functions
https://github.com/mludvig/mini-printf/blob/master/mini-printf.c
Q: Do nested functions really exist in C?
Standard C does not support nested functions.
GCC does support nested functions.
Generally, don't use nested functions if you want your code to be portable.