46 lines
687 B
C
46 lines
687 B
C
|
/*
|
||
|
* main de test des core functions
|
||
|
*/
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <getopt.h>
|
||
|
|
||
|
#include "lut1024.h"
|
||
|
|
||
|
|
||
|
int verbosity;
|
||
|
|
||
|
/* ---------------------------------------------------------------- */
|
||
|
|
||
|
int main (int argc, char *argv[])
|
||
|
{
|
||
|
int foo, opt;
|
||
|
|
||
|
/* set some default values */
|
||
|
verbosity = 0;
|
||
|
|
||
|
|
||
|
while ((opt = getopt(argc, argv, "v")) != -1) {
|
||
|
switch (opt) {
|
||
|
case 'v': verbosity++; break;
|
||
|
|
||
|
|
||
|
default:
|
||
|
fprintf(stderr, "%s : uh ?", argv[0]);
|
||
|
exit(1);
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
foo = load_lut1024f("foo.lut1024f", NULL, 1);
|
||
|
|
||
|
fprintf(stderr, "chargement de la lut --> %d\n", foo);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
/* ---------------------------------------------------------------- */
|