VirtualBox

Changeset 18102 in vbox


Ignore:
Timestamp:
Mar 20, 2009 9:59:30 AM (16 years ago)
Author:
vboxsync
Message:

Runtime/getopt: fix sample to do proper error handling when non-ascii cases are used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/getopt.h

    r18097 r18102  
    274274 *              default:
    275275 *                  if (ch > 0)
    276  *                      Error("missing case: %c\n", ch);
     276 *                  {
     277 *                      if (RT_C_IS_GRAPH(ch)
     278 *                          Error("unhandled option: -%c\n", ch);
     279 *                      else
     280 *                          Error("unhandled option: %i\n", ch);
     281 *                  }
    277282 *                  else if (ch == VERR_GETOPT_UNKNOWN_OPTION)
    278283 *                      Error("unknown option: %s", psz);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette