3 ms·
exit is a function returning void, which was traditionally coerced to 0 but anymore. Yusuke Endoh's patch [1] is available. [1] https://mame.github.io/ioccc-ja
by lifthrasiir 6y ago
exit is a function returning void, which was traditionally coerced to 0 but anymore. Yusuke Endoh's patch [1] is available.
[1] https://mame.github.io/ioccc-ja-spoilers/patches/1990-tbr.patch https://mame.github.io/ioccc-ja-spoilers/patches/1990-tbr.pa...
- byronr 6y agoNo coercion needed. Pre-ANSI C does not have a void type, so unless otherwise specified the return type of a function defaults to int.