#include <errno.h>

void main() {
  errno = 0;
  _exit(errno);
}


syntax highlighted by Code2HTML, v. 0.9.1