| CMarco (46) | |
|
Hello to all, I have a string named str and I want to convert this string to an uint64_t name t. Can someone advise me. Regards CMarco | |
|
|
|
| CMarco (46) | |
|
Hi, I know that atoi converts const char *string to a integer with 32-bits... but to uint64_t this do not work... | |
|
|
|
| Peter87 (3688) | |||||
You can use std::istringstream.
or in one line
| |||||
|
|
|||||
| CMarco (46) | |
|
Hi, I find this, works also: unsigned long strtoul(const char *nptr, char **endptr, int base); and works in C and C++. @Peter87:thanks... Regards, CMarco | |
|
|
|