repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcj.texi (Compatibility): Add Limitations and Extensions section.
[official-gcc.git]
/
libf2c
/
libF77
/
exit_.c
blob
adf3d8592748b9725ca82221f6ca8f293df63f9b
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>
16
extern
void
f_exit
(
void
);
17
18
void
19
G77_exit_0
(
integer
*
rc
)
20
{
21
#ifdef NO_ONEXIT
22
f_exit
();
23
#endif
24
exit
(*
rc
);
25
}