#include"reconstruction.h" #include #include void ProcessSeqCalls( char *dir, char *suffix, ALLELE_DATA **add, int nchr, int *nseq, int penalty, FILE *outfp ) { glob_t globbuf; char pattern[256]; struct dirent **d; sprintf(pattern, "%s/*%s", dir, suffix ); printf("pattern %s\n", pattern); glob( pattern, 0, NULL, &globbuf ); int n = globbuf.gl_pathc; int chr; // if ( n > 21 ) n =21; if (n < 0) fprintf(stderr, "ERROR no files to process in %s\n", dir ); else { int k=0,i; for(i=0;i