getarg_.c File Reference

#include "f2c.h"

Include dependency graph for getarg_.c:

Go to the source code of this file.

Functions

void getarg_ (ftnint *n, register char *s, ftnlen ls)

Variables

int xargc
char ** xargv


Function Documentation

void getarg_ ( ftnint n,
register char *  s,
ftnlen  ls 
)

Definition at line 18 of file getarg_.c.

References i, and t.

Referenced by scigetarg().

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 }

Here is the caller graph for this function:


Variable Documentation

int xargc

Definition at line 12 of file getarg_.c.

Referenced by iargc_(), and main().

char** xargv

Definition at line 13 of file getarg_.c.

Referenced by main().


Generated on Sun Mar 4 15:04:42 2007 for Scilab [trunk] by  doxygen 1.5.1