Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

getopt() is an important C library function used by applications for parsing of task comman command line paramters.  It is, however, not re-entrant due to the use of global variables:  optarg, opterr, optind, and optopt. There are several, non-standard implementations for a re-entrant version of called getopt_r(), however, these are all wildly different and do not conform to any standard.  Non-standard interfaces are not desirable in NuttX.

...