Sign in
gnu
/
binutils-gdb
/
76b43c9b5c2b275cbf4f927bfc25984410cb5dd5
/
.
/
gdb
/
testsuite
/
gdb.base
/
sum.c
blob: 3e27fa1a41a19eba2d960078710ea482029da9a6 [
file
] [
log
] [
blame
]
/* This is a sample program for the HP/DDE debugger. */
#include
<stdio.h>
int
sum
(
int
*
list
,
int
low
,
int
high
)
{
int
i
=
0
,
s
=
0
;
/* stop-in-sum */
for
(
i
=
low
;
i
<=
high
;
i
++)
s
+=
list
[
i
];
return
(
s
);
}