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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pbcc/] [funstruct/] [funstruct.c] - Rev 54

Compare with Previous | Blame | View Log

struct s {
 int a;
 char b;
} struktura;
 
int sum(char nnn1, short n2, int n3)
{
	return (int)nnn1 + n2 + n3;
}
 
void main()
{
	char c = 29;
	short d = 57;
	int e = 113;
 
 
	if (sum(1, 2, 3) > 5)
	{
		sum(2, 3, c + d);
		return;
	}
	else
	{
		struktura.a = 99;
	}
	struktura.a = 2*e;
	struktura.b = c;
	sum (struktura.b, d, e);
 
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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