VirtualBox

Changeset 5911 in vbox


Ignore:
Timestamp:
Dec 2, 2007 9:21:00 PM (17 years ago)
Author:
vboxsync
Message:

RTGetOpt does not alter argv[] does it?

Location:
trunk
Files:
3 edited

Legend:

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

    r5843 r5911  
    155155 *                      that require an argument, this contains the value of that argument, depending on the type that is required.
    156156 */
    157 RTDECL(int) RTGetOpt(int argc, char *argv[], PCRTOPTIONDEF paOptions, size_t cOptions, int *piThis, PRTOPTIONUNION pValueUnion);
     157RTDECL(int) RTGetOpt(int argc, const char *argv[], PCRTOPTIONDEF paOptions, size_t cOptions, int *piThis, PRTOPTIONUNION pValueUnion);
    158158
    159159/** @} */
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r5843 r5911  
    2626
    2727
    28 RTDECL(int) RTGetOpt(int argc, char *argv[], PCRTOPTIONDEF paOptions, size_t cOptions, int *piThis, PRTOPTIONUNION pValueUnion)
     28RTDECL(int) RTGetOpt(int argc, const char *argv[], PCRTOPTIONDEF paOptions, size_t cOptions, int *piThis, PRTOPTIONUNION pValueUnion)
    2929{
    3030    pValueUnion->pDef = NULL;
  • trunk/src/VBox/Runtime/testcase/tstGetOpt.cpp

    r5843 r5911  
    5252    };
    5353
    54     char *argv2[] =
     54    const char *argv2[] =
    5555    {
    5656        "-s",               "string1",
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