libk  Artifact [f1bdb07ea2]

Artifact f1bdb07ea2cdf164dc0f298b6c6fc76b11b10deab2bf3ced0de9d85a4101ac49:


#include <k/core.h>
#include <k/mem.h>
#include <k/io.h>
#include <k/magic.h>

kbad entry(kenv e) {
	const char msg[] = "hello from libk\n";
	ksraw ptr = { Kmsz(msg), msg };

	bool maybe = true;
	maybe = no;

	if (kiosend(e.std, ptr, null) == kiocond_ok) {
		return kbad_ok;
	} else {
		return kbad_io;
	}
}