/* * NcLooper test des fonctions ncurses */ #include #include #include /* --------------------------------------------------------------------- */ int verbosity; /* --------------------------------------------------------------------- */ void help(int k) { puts("plop..."); exit(0); } /* --------------------------------------------------------------------- */ int main(int argc, char *argv[]) { int foo; int opt; while ((opt = getopt(argc, argv, "hv")) != -1) { switch(opt) { case 'h': help(0); break; case 'v': verbosity++; break; } } #if DEBUG_LEVEL fprintf(stderr, "argc = %d, optind = %d\n", argc, optind); #endif return 0; } /* --------------------------------------------------------------------- */