1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00

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;
}