2012/12/1 Paul Davey <plmdvy@xxxxxxxxx>: > You can use strtoll as follows: > char* conversionEnd; > long long result = strtoll(stringToConvert, &conversionEnd, 10 > /*This is the base you want it to convert from*/); > After that the value it converted will be in result, and the position in the > string just after the number it converted will be in conversionEnd. > The function will return 0 if it could not convert anything, and will return > LLONG_MAX or LLONG_MIN if the value is outside the range representable by a > long long. Thank you very much, Paul! Giovanni.