Changeset 96058 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Aug 5, 2022 11:09:17 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152857
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/nocrt-strtoull.cpp
r96057 r96058 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - No-CRT - strtoul .3 * IPRT - No-CRT - strtoull. 4 4 */ 5 5 … … 38 38 39 39 40 #undef strtoul 41 unsigned long RT_NOCRT(strtoul)(const char *psz, char **ppszNext, int iBase)40 #undef strtoull 41 unsigned long long RT_NOCRT(strtoull)(const char *psz, char **ppszNext, int iBase) 42 42 { 43 #if L ONG_BIT == 6443 #if LLONG_BIT == 64 44 44 uint64_t uValue = 0; 45 45 int rc = RTStrToUInt64Ex(psz, ppszNext, (unsigned)iBase, &uValue); 46 #elif LONG_BIT == 3247 uint32_t uValue = 0;48 int rc = RTStrToUInt32Ex(psz, ppszNext, (unsigned)iBase, &uValue);49 46 #else 50 # error "Unsupported L ONG_BIT value"47 # error "Unsupported LLONG_BIT value" 51 48 #endif 52 49 if (rc == VINF_SUCCESS || rc == VWRN_TRAILING_CHARS || rc == VWRN_TRAILING_SPACES || rc == VWRN_NEGATIVE_UNSIGNED)
Note:
See TracChangeset
for help on using the changeset viewer.