aboutsummaryrefslogtreecommitdiff
path: root/lib/libF77/system_.c
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
commita16f65c7d117419bd266c28a1901ef129a337569 (patch)
tree2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /lib/libF77/system_.c
parent8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff)
This commit was manufactured to restore the state of the 1.1-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
Diffstat (limited to 'lib/libF77/system_.c')
-rw-r--r--lib/libF77/system_.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/libF77/system_.c b/lib/libF77/system_.c
new file mode 100644
index 000000000000..181850b51b13
--- /dev/null
+++ b/lib/libF77/system_.c
@@ -0,0 +1,22 @@
+/* f77 interface to system routine */
+
+#include "f2c.h"
+
+#ifdef KR_headers
+system_(s, n) register char *s; ftnlen n;
+#else
+#undef abs
+#include "stdlib.h"
+system_(register char *s, ftnlen n)
+#endif
+{
+char buff[1000];
+register char *bp, *blast;
+
+blast = buff + (n < 1000 ? n : 1000);
+
+for(bp = buff ; bp<blast && *s!='\0' ; )
+ *bp++ = *s++;
+*bp = '\0';
+return system(buff);
+}