Monitoring du Phytotron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

t.c 822B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * phytotron - outil de gestion des datas
  3. */
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <unistd.h>
  7. int verbosity;
  8. /* --------------------------------------------------------------- */
  9. void help(int k)
  10. {
  11. puts("options : ");
  12. puts("\t-K\tset the K parameter.");
  13. puts("\t-v\tincrease verbosity.");
  14. exit(0);
  15. }
  16. /* --------------------------------------------------------------- */
  17. int main(int argc, char *argv[])
  18. {
  19. int opt, foo;
  20. int K = 0;
  21. // char ligne[100];
  22. while ((opt = getopt(argc, argv, "hKv")) != -1) {
  23. switch (opt) {
  24. case 'h': help(0); break;
  25. case 'K': K = atoi(optarg); break;
  26. case 'v': verbosity++; break;
  27. default: break;
  28. }
  29. }
  30. fprintf(stderr, "*** storage tool %s %s\n", __DATE__, __TIME__);
  31. return 0;
  32. }
  33. /* --------------------------------------------------------------- */