wildmatch: make wildmatch's return value compatible with fnmatch
[alt-git.git] / t / t4109 / patch1.patch
blob1d411fc3ccebe33ee086cfeaea7cea1beb041a6a
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>
8 +int func(int num);
9 +void print_int(int num);
11 +int main() {
12 + int i;
14 + for (i = 0; i < 10; i++) {
15 + print_int(func(i));
16 + }
18 + return 0;
21 +int func(int num) {
22 + return num * num;
25 +void print_int(int num) {
26 + printf("%d", num);