libk  Artifact [45cb80b779]

Artifact 45cb80b779db32a5b540ac2216b1692c95f71f083053a3a37080184d4c9818cf:


#include <k/type.h>
#include <k/str.h>
#include <k/io.h>

kiocond
ksbufflush(ksbuf* b) {
	ksraw str = {b -> cur - b -> buf, b -> buf};
	b -> cur = b -> buf;
	return kiosend(b -> channel, str, null);
}