3 ms·
Why do all the P9 files use `void main` instead of `int main`?
by ufo 13y ago
Why do all the P9 files use `void main` instead of `int main`?
- pmarin 13y agoYes. Instead of returning an integer you use the function exits [1] and the value appears in the shell variable status. [1] http://plan9.bell-labs.com/magic/man2html/2/exits http://plan9.bell-labs.com/magic/man2html/2/exits This is an introduction to programming in Plan9 C: http://doc.cat-v.org/plan_9/programming/c_programming_in_plan_9 http://doc.cat-v.org/plan_9/programming/c_programming_in_pla...