VirtualBox

Changeset 24639 in vbox for trunk/include


Ignore:
Timestamp:
Nov 13, 2009 4:09:36 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54800
Message:

IPRT: Added RTStrVersionToUInt32() with testcase.

File:
1 edited

Legend:

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

    r24427 r24639  
    10581058
    10591059/**
     1060 * Converts a string representation of a version number to an unsigned number.
     1061 *
     1062 * @returns iprt status code.
     1063 *          Warnings are used to indicate convertion problems.
     1064 * @retval  VWRN_NUMBER_TOO_BIG
     1065 * @retval  VWRN_TRAILING_CHARS
     1066 * @retval  VWRN_TRAILING_SPACES
     1067 * @retval  VINF_SUCCESS
     1068 * @retval  VERR_NO_MEMORY
     1069 * @retval  VERR_NO_DIGITS
     1070 *
     1071 * @param   pszValue    Pointer to the string value.
     1072 * @param   pu32        Where to store the converted number.
     1073 */
     1074RTDECL(int) RTStrVersionToUInt32(const char *pszVer, uint32_t *pu32);
     1075
     1076/**
    10601077 * Converts a string representation of a number to a 64-bit unsigned number.
    10611078 *
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