From a3004052fb3921be108520da0d7bef79642f82a0 Mon Sep 17 00:00:00 2001 From: Stoica Liviu Date: Mon, 25 Mar 2024 18:42:56 +0200 Subject: [PATCH 1/2] Lab04: Fix new line in printf Signed-off-by: Stoica Liviu --- .../b-ignore_the_comments/ignore_the_comments.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c b/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c index 85abdb2b..7f9a3efe 100644 --- a/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c +++ b/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c @@ -39,8 +39,7 @@ int main(void) /* drunk, fix later */ while (ago < 0x2a) { - printf("http://stackoverflow.com/questions/184618/what-is-the-best - -comment-in-source-code-you-have-ever-encountered\n"); + printf("http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered\n"); ago++; continue; /* TODO: use goto for Pete's sake! */ printf("Fast inverse square root: %f\n", Q_rsqrt(x)); /* i'm sorry */ From a505aef34a3421428de98f1f063cf78eb0e04858 Mon Sep 17 00:00:00 2001 From: Stoica Liviu Date: Mon, 25 Mar 2024 22:00:50 +0200 Subject: [PATCH 2/2] Fixed newline according to suggestion Signed-off-by: Stoica Liviu --- .../b-ignore_the_comments/ignore_the_comments.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c b/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c index 7f9a3efe..b1d7fafe 100644 --- a/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c +++ b/laborator/content/toolchain-decompilare/2-warm-up-gotos/b-ignore_the_comments/ignore_the_comments.c @@ -39,7 +39,8 @@ int main(void) /* drunk, fix later */ while (ago < 0x2a) { - printf("http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered\n"); + printf("http://stackoverflow.com/questions/184618/what-is-the-best-" + "comment-in-source-code-you-have-ever-encountered\n"); ago++; continue; /* TODO: use goto for Pete's sake! */ printf("Fast inverse square root: %f\n", Q_rsqrt(x)); /* i'm sorry */