00001 #include "f2c.h"
00002 #ifdef __cplusplus
00003 extern "C" {
00004 #endif
00005
00006
00007
00008
00009
00010
00011
00012 int xargc;
00013 char **xargv;
00014
00015 #ifdef KR_headers
00016 VOID getarg_(n, s, ls) ftnint *n; register char *s; ftnlen ls;
00017 #else
00018 void getarg_(ftnint *n, register char *s, ftnlen ls)
00019 #endif
00020 {
00021 extern int xargc;
00022 extern char **xargv;
00023 register char *t;
00024 register int i;
00025
00026 if(*n>=0 && *n<xargc)
00027 t = xargv[*n];
00028 else
00029 t = "";
00030 for(i = 0; i<ls && *t!='\0' ; ++i)
00031 *s++ = *t++;
00032 for( ; i<ls ; ++i)
00033 *s++ = ' ';
00034 }
00035 #ifdef __cplusplus
00036 }
00037 #endif