VirtualBox

Changeset 103283 in vbox for trunk/include


Ignore:
Timestamp:
Feb 8, 2024 3:22:17 PM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161577
Message:

IPRT/string: Added RTStrCat2() as a convenient function.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r103262 r103283  
    22662266# define RTStrCalcUtf16LenEx                            RT_MANGLER(RTStrCalcUtf16LenEx)
    22672267# define RTStrCat                                       RT_MANGLER(RTStrCat)
     2268# define RTStrCat2                                      RT_MANGLER(RTStrCat2)
    22682269# define RTStrCatEx                                     RT_MANGLER(RTStrCatEx)
    22692270# define RTStrCatP                                      RT_MANGLER(RTStrCatP)
  • trunk/include/iprt/string.h

    r103252 r103283  
    24612461 * String concatenation with overflow handling.
    24622462 *
     2463 * @return  Pointer to \a pszDst on success, or NULL on failure.
     2464 *
     2465 * @param   pszDst              The destination buffer.
     2466 * @param   cbDst               The size of the destination buffer (in bytes).
     2467 * @param   pszSrc              The source string.  NULL is not OK.
     2468 */
     2469RTDECL(char *) RTStrCat2(char *pszDst, size_t cbDst, const char *pszSrc);
     2470
     2471/**
     2472 * String concatenation with overflow handling.
     2473 *
    24632474 * @retval  VINF_SUCCESS on success.
    24642475 * @retval  VERR_BUFFER_OVERFLOW if the destination buffer is too small.  The
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