1 long long unsigned str2llu(str)2 str2llu (str) 3 char *str; 4 { 5 long long unsigned acc; 6 long long b = 10; 7 char d; 8 acc = *str++ - '0'; 9 for (;;) 10 { 11 d = *str++; 12 if (d == '\0') 13 break; 14 d -= '0'; 15 acc = acc * 10 + d; 16 } 17 18 return acc; 19 } 20