[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About the mintlibs.



Hi,

>Also, same apply with getopt, The patch works well, but EVERYTIME I
>have to do it manually, I think it would be better if it was directly
>in the libs.

I can't see anything wrong with getopt in MiNTlibs pl46. This is the piece
of code I use in PARCP:

 while((i=getopt(argc, argv, ARG_OPTIONS)) != EOF) {
  switch(tolower(i)) {
   case 's':
    client = FALSE;
    break;
   case 'f':
    strcpy(cesta, optarg);
    konfigOK = file_exists(cesta);
    break;
   case '?':
    puts(USAGE); exit(1);
  }
 }

... and it compiles OK, no problems anywhere (MiNT, Linux, DOS).

Petr