sudoku.c
changeset 85 9568a180fc43
parent 77 49e0babccb23
child 133 f46f9606dbfb
equal deleted inserted replaced
84:f59d8a8e786f 85:9568a180fc43
   186 
   186 
   187     int i;
   187     int i;
   188     int ret;
   188     int ret;
   189     int colored = 0;
   189     int colored = 0;
   190 
   190 
   191     while ((i = getopt (argc, argv, "ch")) != -1) {
   191     struct option options[] = {
       
   192         {"colored", 0, 0, 'c'},
       
   193         {"help", 0, 0, 'h'},
       
   194     };
       
   195 
       
   196     while ((i = getopt_long_only (argc, argv, "ch", options, NULL)) != -1) {
   192         switch (i) {
   197         switch (i) {
   193         case 'h':
   198         case 'h':
   194             usage (argv[0]);
   199             usage (argv[0]);
   195             return EXIT_SUCCESS;
   200             return EXIT_SUCCESS;
   196         case 'c':
   201         case 'c':