VirtualBox

Changeset 69742 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Nov 18, 2017 4:58:38 AM (7 years ago)
Author:
vboxsync
Message:

IPRT: Added RTGetOptFormatError.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r69105 r69742  
    427427
    428428/**
     429 * Formats error messages for a RTGetOpt default case.
     430 *
     431 * @returns On success, positive count of formatted character excluding the
     432 *          terminator.  On buffer overflow, negative number giving the required
     433 *          buffer size (including terminator char).  (RTStrPrintf2 style.)
     434 *
     435 * @param   pszBuf      The buffer to format into.
     436 * @param   cbBuf       The size of the buffer @a pszBuf points to.
     437 * @param   ch          The RTGetOpt return value.
     438 * @param   pValueUnion The value union returned by RTGetOpt.
     439 */
     440RTDECL(ssize_t) RTGetOptFormatError(char *pszBuf, size_t cbBuf, int ch, PCRTGETOPTUNION pValueUnion);
     441
     442/**
    429443 * Parses the @a pszCmdLine string into an argv array.
    430444 *
  • trunk/include/iprt/mangling.h

    r69720 r69742  
    10051005# define RTGetOptInit                                   RT_MANGLER(RTGetOptInit)
    10061006# define RTGetOptNonOptionArrayPtr                      RT_MANGLER(RTGetOptNonOptionArrayPtr)
     1007# define RTGetOptFormatError                            RT_MANGLER(RTGetOptFormatError)
    10071008# define RTGetOptPrintError                             RT_MANGLER(RTGetOptPrintError)
    10081009# define RTHandleClose                                  RT_MANGLER(RTHandleClose)
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