> Well, gcc being my sole compiler, I wasn't aware I was using an extension (and without digging, I'm not really sure what one is).
gcc -W -Wall -ansi -pedantic prog.c
Will tell you most things...
Type: Posts; User: Salem
> Well, gcc being my sole compiler, I wasn't aware I was using an extension (and without digging, I'm not really sure what one is).
gcc -W -Wall -ansi -pedantic prog.c
Will tell you most things...
It's nothing to do with fork, it's just illegal C code.
C doesn't allow nested functions, you're relying on a gcc extension.