libk  bufmk.fn.c at [8d6b36fcac]

File mod/kstr/bufmk.fn.c artifact 25e9d731b6 part of check-in 8d6b36fcac


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

ksbuf*
ksbufmk (void* where, kiochan channel, sz run) {
	ksbuf* r = where;
	r -> cur = r -> buf;
	r -> channel = channel;
	r -> run = run;
	return r;
}