mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-13 11:04:27 -05:00
Improve examples
This commit is contained in:
parent
75a573a9e0
commit
9aa9279c26
3 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue