1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-07-07 18:51:58 -04:00

Improve example

This commit is contained in:
Alex Kotov 2020-12-07 05:22:52 +05:00
parent 66d00d5778
commit a5654e98cb
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -20,8 +20,8 @@ int main()
{
memset(buffer, '\0', sizeof(buffer));
buffer_index = 0;
kernaux_printf(my_putchar, "Hello, %s! Session id: %u.", "Alex", 123);
assert(strcmp(buffer, "Hello, Alex! Session id: 123.") == 0);
kernaux_printf(my_putchar, "Hello, %s! Session ID: %u.", "Alex", 123);
assert(strcmp(buffer, "Hello, Alex! Session ID: 123.") == 0);
printf("OK!\n");