1  int count;
2 
func(int * valp)3  int func(int *valp) {
4    int val, locked = 0;
5 
6    while ((val = *valp) != 0) {
7      if (count) {
8        if (count)
9          locked = 1;
10        else
11          locked = 1;
12 
13      if (!locked)
14        continue;
15      }
16 
17      if (!count)
18        count--;
19 
20      break;
21    }
22 
23    return val;
24  }
25