Is there anything wrong with declaring a function inside a forked block, eg:
it seems to work, but just because no one stopped you doesn't make it right -- so I thought I'd ask and find out what kind of trouble may await.Code:pid=fork();
if (pid==0) {
void newfunc() {
[....]
}
[...]
newfunc();
}