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

Go to the documentation of this file.
00001 /*****************************************************************************
00002    Major portions of this software are copyrighted by the Medical College
00003    of Wisconsin, 1994-2000, and are released under the Gnu General Public
00004    License, Version 2.  See the file README.Copyright for details.
00005 ******************************************************************************/
00006    
00007 #include "mrilib.h"
00008 
00009 int main(int argc,char * argv[])
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: