Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

getarg_.c File Reference

#include "f2c.h"

Go to the source code of this file.


Functions

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

Function Documentation

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

Definition at line 12 of file getarg_.c.

References i, xargc, and xargv.

00014 {
00015 extern int xargc;
00016 extern char **xargv;
00017 register char *t;
00018 register int i;
00019 
00020 if(*n>=0 && *n<xargc)
00021         t = xargv[*n];
00022 else
00023         t = "";
00024 for(i = 0; i<ls && *t!='\0' ; ++i)
00025         *s++ = *t++;
00026 for( ; i<ls ; ++i)
00027         *s++ = ' ';
00028 }
 

Powered by Plone

This site conforms to the following standards: