summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/d.c
blob: 5fca120d85a8b397fa57da340a4e394114a4207a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}