mirror of https://github.com/tailix/libkernaux.git
Improve example
This commit is contained in:
parent
66d00d5778
commit
a5654e98cb
|
@ -20,8 +20,8 @@ int main()
|
||||||
{
|
{
|
||||||
memset(buffer, '\0', sizeof(buffer));
|
memset(buffer, '\0', sizeof(buffer));
|
||||||
buffer_index = 0;
|
buffer_index = 0;
|
||||||
kernaux_printf(my_putchar, "Hello, %s! Session id: %u.", "Alex", 123);
|
kernaux_printf(my_putchar, "Hello, %s! Session ID: %u.", "Alex", 123);
|
||||||
assert(strcmp(buffer, "Hello, Alex! Session id: 123.") == 0);
|
assert(strcmp(buffer, "Hello, Alex! Session ID: 123.") == 0);
|
||||||
|
|
||||||
printf("OK!\n");
|
printf("OK!\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue