libk  testbin.exe.c at [e794c5edef]

File kcore/testbin.exe.c artifact f1bdb07ea2 part of check-in e794c5edef


#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;
	}
}