exit

OS/161 Reference Manual

Name

exit - terminate program

Library

Standard C Library (libc, -lc)

Synopsis

#include <stdlib.h>

int
exit(int code);

Description

exit causes the program to exit. It calls internal cleanup routines, and then performs the actual exit by calling _exit.

Return Values

exit does not return.