repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Prepare for 2.9.4
[alt-git.git]
/
t
/
t4109
/
patch1.patch
blob
1d411fc3ccebe33ee086cfeaea7cea1beb041a6a
1
diff --git a/main.c b/main.c
2
new file mode 100644
3
--- /dev/null
4
+++ b/main.c
5
@@ -0,0 +1,23 @@
6
+#include <stdio.h>
7
+
8
+int func(int num);
9
+void print_int(int num);
10
+
11
+int main() {
12
+ int i;
13
+
14
+ for (i = 0; i < 10; i++) {
15
+ print_int(func(i));
16
+ }
17
+
18
+ return 0;
19
+}
20
+
21
+int func(int num) {
22
+ return num * num;
23
+}
24
+
25
+void print_int(int num) {
26
+ printf("%d", num);
27
+}
28
+