Changeset 96058 in vbox
- Timestamp:
- Aug 5, 2022 11:09:17 AM (2 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r96056 r96058 1805 1805 common/string/nocrt-strtoll.cpp \ 1806 1806 common/string/nocrt-strtoul.cpp \ 1807 common/string/nocrt-strtoull.cpp \ 1807 1808 common/string/strtok_r.cpp \ 1808 1809 r3/nocrt-per-thread-1.cpp \ -
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.