Changeset 96057 in vbox
- Timestamp:
- Aug 5, 2022 11:07:45 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/nocrt-strtoul.cpp
r96056 r96057 34 34 #include <iprt/nocrt/limits.h> 35 35 #include <iprt/nocrt/errno.h> 36 #include <iprt/err.h> 36 37 #include <iprt/string.h> 37 38 38 39 39 40 #undef strtoul 40 long RT_NOCRT(strtoul)(const char *psz, char **ppszNext, int iBase)41 unsigned long RT_NOCRT(strtoul)(const char *psz, char **ppszNext, int iBase) 41 42 { 42 #if ULONG_BIT == 6443 #if LONG_BIT == 64 43 44 uint64_t uValue = 0; 44 int rc = RTStrToUInt64Ex(psz, ppszNext, (unsigned)iBase, &u iValue);45 #elif ULONG_BIT == 3246 int32_t uValue = 0;47 int rc = RTStrToUInt32Ex(psz, ppszNext, (unsigned)iBase, &u iValue);45 int rc = RTStrToUInt64Ex(psz, ppszNext, (unsigned)iBase, &uValue); 46 #elif LONG_BIT == 32 47 uint32_t uValue = 0; 48 int rc = RTStrToUInt32Ex(psz, ppszNext, (unsigned)iBase, &uValue); 48 49 #else 49 50 # error "Unsupported LONG_BIT value"
Note:
See TracChangeset
for help on using the changeset viewer.