* function.c (purge_addressof): Use free_INSN_LIST_node instead of
[official-gcc.git] / libf2c / libF77 / getarg_.c
blobb35043b4a488606799260bf8ea9c265b343a1601
1 #include "f2c.h"
3 /*
4 * subroutine getarg(k, c)
5 * returns the kth unix command argument in fortran character
6 * variable argument c
7 */
9 void
10 G77_getarg_0 (ftnint * n, register char *s, ftnlen ls)
12 extern int f__xargc;
13 extern char **f__xargv;
14 register char *t;
15 register int i;
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++ = ' ';