toaruos/modules/test.c
2021-05-31 10:54:11 +09:00

22 lines
320 B
C

#include <kernel/printf.h>
static int init(int argc, char * argv[]) {
printf("Hello, world.\n");
return 0;
}
static int fini(void) {
return 0;
}
struct Module {
const char * name;
int (*init)(int argc, char * argv[]);
int (*fini)(void);
} module_info_test = {
.name = "test",
.init = init,
.fini = fini,
};