|
Last change
on this file since 3231 was 1392, checked in by bird, 22 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:
458 bytes
|
| Line | |
|---|
| 1 | #include "f2c.h"
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * subroutine getarg(k, c)
|
|---|
| 5 | * returns the kth unix command argument in fortran character
|
|---|
| 6 | * variable argument c
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | void
|
|---|
| 10 | G77_getarg_0 (ftnint * n, register char *s, ftnlen ls)
|
|---|
| 11 | {
|
|---|
| 12 | extern int f__xargc;
|
|---|
| 13 | extern char **f__xargv;
|
|---|
| 14 | register char *t;
|
|---|
| 15 | register int i;
|
|---|
| 16 |
|
|---|
| 17 | if (*n >= 0 && *n < f__xargc)
|
|---|
| 18 | t = f__xargv[*n];
|
|---|
| 19 | else
|
|---|
| 20 | t = "";
|
|---|
| 21 | for (i = 0; i < ls && *t != '\0'; ++i)
|
|---|
| 22 | *s++ = *t++;
|
|---|
| 23 | for (; i < ls; ++i)
|
|---|
| 24 | *s++ = ' ';
|
|---|
| 25 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.