source: trunk/gcc/libf2c/libF77/exit_.c

Last change on this file was 1392, checked in by bird, 21 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 339 bytes
Line 
1/* This gives the effect of
2
3 subroutine exit(rc)
4 integer*4 rc
5 stop
6 end
7
8 * with the added side effect of supplying rc as the program's exit code.
9 */
10
11#include "f2c.h"
12#undef abs
13#undef min
14#undef max
15#include <stdlib.h>
16extern void f_exit (void);
17
18void
19G77_exit_0 (integer * rc)
20{
21#ifdef NO_ONEXIT
22 f_exit ();
23#endif
24 exit (*rc);
25}
Note: See TracBrowser for help on using the repository browser.