mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
16 lines
313 B
C
16 lines
313 B
C
/* This is a sample program for the HP/DDE debugger. */
|
|
#include <stdio.h>
|
|
|
|
#ifdef PROTOTYPES
|
|
int sum(int *list, int low, int high)
|
|
#else
|
|
int sum(list, low, high)
|
|
int *list, low, high;
|
|
#endif
|
|
{
|
|
int i = 0, s = 0;
|
|
for (i = low; i <= high; i++)
|
|
s += list[i];
|
|
return(s);
|
|
}
|