Doxygen Source Code Documentation
fftnext.c File Reference
#include "mrilib.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Function Documentation
|
\** File : SUMA.c
Input paramters :
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 } |