mirror of https://github.com/tailix/libkernaux.git
Print "OK!" in example for <kernaux/printf.h>
This commit is contained in:
parent
a1b373e49a
commit
a314bf825d
|
@ -1,6 +1,7 @@
|
||||||
#include <kernaux/printf.h>
|
#include <kernaux/printf.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -22,5 +23,7 @@ int main()
|
||||||
kernaux_printf(my_putchar, "Hello, %s!", "Alex");
|
kernaux_printf(my_putchar, "Hello, %s!", "Alex");
|
||||||
assert(strcmp(buffer, "Hello, Alex!") == 0);
|
assert(strcmp(buffer, "Hello, Alex!") == 0);
|
||||||
|
|
||||||
|
printf("OK!\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue