/* * NcLooper test des fonctions fichier (???) */ #include #include #include #include #include #include "../nclooper.h" #include "smpllist.h" #include "ffuncs.h" /* --------------------------------------------------------------------- */ int verbosity; SampleRef the_samples[26]; /* --------------------------------------------------------------------- */ void help(int k) { puts("Test des fonctions de gestion des fichiers"); exit(0); } /* --------------------------------------------------------------------- */ int main(int argc, char *argv[]) { int foo; int opt; char *listname = "samples.list"; while ((opt = getopt(argc, argv, "hl:v")) != -1) { switch(opt) { case 'h': help(0); break; case 'v': verbosity++; break; case 'l': listname = optarg; break; } } #if DEBUG_LEVEL fprintf(stderr, "argc = %d, optind = %d\n", argc, optind); #endif foo = lecture_liste_des_samples(listname, the_samples); fprintf(stderr,"retour lecture liste '%s' -> %d\n", listname, foo); affiche_liste_des_samples(the_samples); return 0; } /* --------------------------------------------------------------------- */