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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [testsuite/] [gdb.gdbtk/] [simple.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
int
2
main(int argc, char * argv[])
3
{
4
   int i;
5
   char *a;
6
   char *b = "abc";
7
   long  foo;
8
 
9
   a = (char *) malloc (300);
10
 
11
   for (i=0; i < 50; i++)
12
     {
13
       int j = i % 3;
14
       int k = 3 - j;
15
       strncpy (a[i], b[k], j);
16
       foo = (long) j * k / i + 2 * k * k * k;
17
     }
18
   return 0;
19
}
20
 

powered by: WebSVN 2.1.0

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