Minor updates

pull/10/head
Cees Bassa 2014-12-24 14:46:21 +01:00
parent 131d9e103d
commit ccd54fc842
2 changed files with 12 additions and 2 deletions

View File

@ -311,3 +311,6 @@
39765 2279.406
36037 2235.009
25544 143.050
35938 2279.671
39497 2276.036
26958 2223.014

View File

@ -6,14 +6,21 @@ int main(int argc,char *argv[])
{
int i,firstfile=1,status;
FILE *file;
char header[256],filename[128],nfd[32];
char header[256],filename[128],nfd[32],fileroot[128];
double freq,samp_rate;
float length;
int nchan;
if (strchr(argv[1],'_')!=NULL) {
strncpy(fileroot,argv[1],strlen(argv[1])-11);
fileroot[strlen(argv[1])-11]='\0';
} else {
strcpy(fileroot,argv[1]);
}
// Open first file
for (i=0;;i++) {
sprintf(filename,"%s_%06d.bin",argv[1],i);
sprintf(filename,"%s_%06d.bin",fileroot,i);
file=fopen(filename,"r");
// Break if file does not exist