Formatting fixes

This commit is contained in:
Michael Kerrisk 2005-06-23 09:58:22 +00:00
parent a210091ced
commit 87ed9800a4
1 changed files with 4 additions and 4 deletions

View File

@ -36,15 +36,15 @@ on_exit \- register a function to be called at normal process termination
.BI "int on_exit(void (*" function ")(int , void *), void *" arg );
.fi
.SH DESCRIPTION
The \fBon_exit()\fP function registers the given \fIfunction\fP to be
The \fBon_exit\fP() function registers the given \fIfunction\fP to be
called at normal process termination, whether via
.BR exit (3)
or via return from the program's \fBmain\fP.
or via return from the program's \fImain\fP().
The \fIfunction\fP is passed the argument to
.BR exit (3)
and the \fIarg\fP argument from \fBon_exit()\fP.
and the \fIarg\fP argument from \fBon_exit\fP().
.SH "RETURN VALUE"
The \fBon_exit()\fP function returns the value 0 if successful; otherwise
The \fBon_exit\fP() function returns the value 0 if successful; otherwise
it returns a non-zero value.
.SH "CONFORMING TO"
This function comes from SunOS 4, but is also present in