diff --git a/.gitignore b/.gitignore index e627a43..494b51c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # mon machin a moi audio/t +audio/*.wav + +ui/t # ---> C # Prerequisites diff --git a/ui/Makefile b/ui/Makefile new file mode 100644 index 0000000..773adfd --- /dev/null +++ b/ui/Makefile @@ -0,0 +1,10 @@ + +# NcLooper : user interface components + +CC = gcc +CCOPT = -Wall -g -DDEBUG_LEVEL=1 + + +t: t.c ${OBJS} Makefile + $(CC) ${CCOPT} $< ${OBJS} ${LIBS} -o $@ + diff --git a/ui/t.c b/ui/t.c new file mode 100644 index 0000000..1f5d97f --- /dev/null +++ b/ui/t.c @@ -0,0 +1,40 @@ +/* + * 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; +} +/* --------------------------------------------------------------------- */