unsigned long from string

unsigned long B = atol(str.c_str());

If you want to convert to unsigned long, you need a function that can handle unsigned long

1 Like