Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t4109/patch4.patch # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t4109 / patch4.patch` 30 lines ยท 456 bytes Raw Blame History 1 diff --git a/main.c b/main.c 2 --- a/main.c 3 +++ b/main.c 4 @@ -1,13 +1,14 @@ 5 #include 6 7 int func(int num); 8 -void print_int(int num); 9 +int func2(int num); 10 11 int main() { 12 int i; 13 14 for (i = 0; i < 10; i++) { 15 - print_int(func(i)); 16 + printf("%d", func(i)); 17 + printf("%d", func3(i)); 18 } 19 20 return 0; 21 @@ -17,7 +18,7 @@ 22 return num * num; 23 } 24 25 -void print_int(int num) { 26 - printf("%d", num); 27 +int func2(int num) { 28 + return num * num * num; 29 } 30