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  

fftnext.c File Reference

#include "mrilib.h"

Go to the source code of this file.


Functions

int main (int argc, char *argv[])

Function Documentation

int main int    argc,
char *    argv[]
 

\** File : SUMA.c

Author:
: Ziad Saad Date : Thu Dec 27 16:21:01 EST 2001
Purpose :

Input paramters :

Parameters:
param  Usage : SUMA ( )
Returns :
Returns:
Support :
See also:
OpenGL prog. Guide 3rd edition , varray.c from book's sample code
Side effects :

Definition at line 9 of file fftnext.c.

References argc, csfft_nextup(), and top.

00010 {
00011    int ii , jj , bot=1,top=20000 ;
00012 
00013    if( argc > 1 ){
00014       if( argv[1][0] == '-' ){printf("Usage: fftnext [bot [top]]\n");exit(0);}
00015       bot = strtol(argv[1],NULL,10) ;
00016       if( bot < 1 ) bot = 1 ;
00017       if( argc > 2 ){
00018          top = strtol(argv[2],NULL,10) ;
00019          if( top < bot ) top = bot ;
00020       }
00021    }
00022    ii = bot ;
00023    do{
00024       jj = csfft_nextup(ii) ;
00025       printf(" %d",jj) ; fflush(stdout) ;
00026       ii = jj+1 ;
00027    } while( ii < top ) ;
00028    printf("\n") ; exit(0) ;
00029 }
 

Powered by Plone

This site conforms to the following standards: