mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-13 11:04:27 -05:00
31 lines
552 B
C
31 lines
552 B
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <kernaux/multiboot2.h>
|
|
|
|
#include <assert.h>
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
|
|
#include "multiboot2_info_example2.h"
|
|
|
|
static void my_printf(const char *format, ...)
|
|
{
|
|
va_list va;
|
|
va_start(va, format);
|
|
vprintf(format, va);
|
|
va_end(va);
|
|
}
|
|
|
|
void test_main()
|
|
{
|
|
assert(KernAux_Multiboot2_Info_is_valid(
|
|
&multiboot2_info_example2.multiboot2_info
|
|
));
|
|
|
|
KernAux_Multiboot2_Info_print(
|
|
&multiboot2_info_example2.multiboot2_info,
|
|
my_printf
|
|
);
|
|
}
|