41 lines
784 B
C
41 lines
784 B
C
|
/*
|
||
|
* NcLooper test des fonctions ncurses
|
||
|
*/
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
/* --------------------------------------------------------------------- */
|
||
|
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;
|
||
|
}
|
||
|
/* --------------------------------------------------------------------- */
|