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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pbcc/] [funstruct/] [funstruct.c] - Blame information for rev 60

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

Line No. Rev Author Line
1 54 ameziti
struct s {
2
 int a;
3
 char b;
4
} struktura;
5
 
6
int sum(char nnn1, short n2, int n3)
7
{
8
        return (int)nnn1 + n2 + n3;
9
}
10
 
11
void main()
12
{
13
        char c = 29;
14
        short d = 57;
15
        int e = 113;
16
 
17
 
18
        if (sum(1, 2, 3) > 5)
19
        {
20
                sum(2, 3, c + d);
21
                return;
22
        }
23
        else
24
        {
25
                struktura.a = 99;
26
        }
27
        struktura.a = 2*e;
28
        struktura.b = c;
29
        sum (struktura.b, d, e);
30
 
31
}

powered by: WebSVN 2.1.0

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