ultrix man page for exit

Query: exit

OS: ultrix

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

exit(3) 						     Library Functions Manual							   exit(3)

Name
       exit - terminate a process after flushing any pending output

Syntax
       void exit(status)
       int status;
       int atexit(func)
       void (*func)();

Description
       The  function  terminates  a process after calling the Standard I/O library function, _cleanup, to flush any buffered output.  The function
       never returns.

       The function registers a function to be called (without arguments) at normal program termination; functions are called in the reverse order
       of their registration (that is, most recent first). If a function is registered more than once, it will be called more than once.

Return Values
       The function returns zero if the registration succeeds, or -1 if the function pointer is null or if too many functions are registered.

See Also
       exit(2), intro(3s)

																	   exit(3)
Related Man Pages
atexit(3c) - sunos
atexit(3) - linux
exit(3) - freebsd
atexit(3) - osx
atexit(3) - freebsd
Similar Topics in the Unix Linux Community
Unable to install Sol10 on V245, exiting to shell.
Unable to find exit status of piped command
To search the pattern on the basis of date and exit code
Returning an exit code from a bash function
Script Works But Need It to Exit Upon Closing Program