8sa1-gcc/gcc/testsuite/gcc.c-torture/unsorted/d.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

20 lines
259 B
C

long long unsigned
str2llu (str)
char *str;
{
long long unsigned acc;
long long b = 10;
char d;
acc = *str++ - '0';
for (;;)
{
d = *str++;
if (d == '\0')
break;
d -= '0';
acc = acc * 10 + d;
}
return acc;
}