(I want to assign "int forkwait(char *args[])" and "void exec(char *args[])" to a common function pointer. Do I need gratuitous wrapper?)
@landley You would need a wrapper, but it makes more sense to just change the return type to int.
-
-
@RichFelker I could also typecast the noreturn function. I could compile time probe whether it works if I really wanted to. But... really? -
@landley It's UB. Probe is not valid. Just write safe correct code that says what you mean rather than breaking rules for kicks.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.