921e5a0eb4
From-SVN: r14840
18 lines
204 B
C
18 lines
204 B
C
foo (a, p)
|
|
int *p;
|
|
{
|
|
int old, new, i;
|
|
|
|
old = 0;
|
|
for (i = 1; i < 100; i++)
|
|
{
|
|
new = p[i];
|
|
if (new < old)
|
|
a++;
|
|
old = new;
|
|
if (old == 0)
|
|
return 0;
|
|
}
|
|
return a;
|
|
}
|