From 9aa9279c2641b744499f8fe1e78747f9bfc7da40 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 7 Dec 2020 05:37:15 +0500 Subject: [PATCH] Improve examples --- examples/cmdline.c | 3 --- examples/printf.c | 2 -- examples/printf_va.c | 2 -- 3 files changed, 7 deletions(-) diff --git a/examples/cmdline.c b/examples/cmdline.c index 6635fc6..abaa542 100644 --- a/examples/cmdline.c +++ b/examples/cmdline.c @@ -1,7 +1,6 @@ #include #include -#include #include static const unsigned int ARGV_COUNT_MAX = 100; @@ -31,7 +30,5 @@ int main() assert(strcmp(argv[0], "foo") == 0); assert(strcmp(argv[1], "bar car") == 0); - printf("OK!\n"); - return 0; } diff --git a/examples/printf.c b/examples/printf.c index 54afabe..71009ce 100644 --- a/examples/printf.c +++ b/examples/printf.c @@ -1,7 +1,6 @@ #include #include -#include #include #include @@ -20,6 +19,5 @@ int main() { kernaux_printf(my_putchar, "Hello, %s! Session ID: %u.", "Alex", 123); assert(strcmp(buffer, "Hello, Alex! Session ID: 123.") == 0); - printf("OK!\n"); return 0; } diff --git a/examples/printf_va.c b/examples/printf_va.c index 8600ade..e628bd6 100644 --- a/examples/printf_va.c +++ b/examples/printf_va.c @@ -1,7 +1,6 @@ #include #include -#include #include #include @@ -28,6 +27,5 @@ int main() { my_printf("Hello, %s! Session ID: %u.", "Alex", 123); assert(strcmp(buffer, "Hello, Alex! Session ID: 123.") == 0); - printf("OK!\n"); return 0; }