language: C (gcc-4.7.2)
date: 1025 days 4 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <stdio.h> 
 
typedef struct mystruct{
float a,b;
int x, y;
} mystruct;
 
mystruct setter(i)
{
struct mystruct TEMP;
TEMP.x = i;
TEMP.y = 0;
TEMP.b = 0;
TEMP.a = 0;
return TEMP;
}
 
 
int main(void) { 
 
        mystruct List[1];
int     ListNumber = 0;
int i;
        
        for(i = 0; i < 1; i++)
        {
         if(1) //conditions_meet)
         {
          List[ListNumber] = setter(i);
          ListNumber+=1;
         }
        }
 
 
  return 0; 
}