Improve examples

This commit is contained in:
Alex Kotov 2020-12-07 05:37:15 +05:00
parent 75a573a9e0
commit 9aa9279c26
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
3 changed files with 0 additions and 7 deletions

View File

@ -1,7 +1,6 @@
#include <kernaux/cmdline.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
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;
}

View File

@ -1,7 +1,6 @@
#include <kernaux/printf.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -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;
}

View File

@ -1,7 +1,6 @@
#include <kernaux/printf.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -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;
}