Initial import
This commit is contained in:
18
third_party/f2c/exit_.c
vendored
Normal file
18
third_party/f2c/exit_.c
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "third_party/f2c/f2c.h"
|
||||
#include "third_party/f2c/internal.h"
|
||||
|
||||
/**
|
||||
* This gives the effect of
|
||||
*
|
||||
* subroutine exit(rc)
|
||||
* integer*4 rc
|
||||
* stop
|
||||
* end
|
||||
*
|
||||
* with the added side effect of supplying rc as the program's exit code.
|
||||
*/
|
||||
void exit_(integer *rc) {
|
||||
f_exit();
|
||||
exit(*rc);
|
||||
}
|
||||
Reference in New Issue
Block a user