Mercurial > hg > CbC > CbC_examples
annotate normal.c @ 25:6324b8df04f1
lj_as2: fix segmentation fault
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Jan 2016 21:44:55 +0900 |
parents | 0d306982c8b9 |
children |
rev | line source |
---|---|
0 | 1 #include<stdio.h> |
2 #include<stdlib.h> | |
3 | |
4 //size_t size; | |
5 int size; | |
6 typedef int test_int; | |
7 | |
8 test_int ti; | |
9 | |
10 void end(){ | |
12
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
11 exit(0); |
0 | 12 } |
13 | |
14 int main(int argc, char **argv){ | |
12
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
15 size=0; |
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
16 ti=10; |
0 | 17 |
12
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
18 printf("main: "); |
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
19 printf("normal:%d\n", argc); |
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
20 |
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
21 size = 10; |
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
22 printf("size = %d\n", size); |
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
23 printf(" ti = %d\n", ti); |
0d306982c8b9
remove code segment declaration from fact-a
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
24 end(); |
0 | 25 } |
26 |