OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.hp/] [gdb.compat/] [sum.c] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* This is a sample program for the HP/DDE debugger. */
2
#include <stdio.h>
3
 
4
#ifdef __STDC__
5
int sum(int *list, int low, int high)
6
#else
7
int sum(list, low, high)
8
int *list, low, high;
9
#endif
10
    {
11
        int i = 0, s = 0;
12
        for (i = low; i <= high; i++)
13
            s += list[i];
14
        return(s);
15
    }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.