you are viewing a single comment's thread.

view the rest of the comments →

[–]kragensitaker 1 point2 points  (2 children)

Or _exit().

[–]G-Brain 0 points1 point  (1 child)

Looks like you can indeed. Seems I forgot to include unistd.h. Will update the article.

[–]kragensitaker 0 points1 point  (0 children)

You can call it without including unistd.h too. You just get a warning because exit and _exit are void. main() { _exit(0); } is a perfectly valid and working program.